mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-16 18:15:42 +02:00
Refactor custom precision in floating point stringification
Also fixup tests.
This commit is contained in:
@@ -261,19 +261,13 @@ namespace Catch {
|
||||
template<>
|
||||
struct StringMaker<float> {
|
||||
static std::string convert(float value);
|
||||
static void setPrecision(int precision);
|
||||
static int getPrecision();
|
||||
private:
|
||||
static int m_precision;
|
||||
static int precision;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct StringMaker<double> {
|
||||
static std::string convert(double value);
|
||||
static void setPrecision(int precision);
|
||||
static int getPrecision();
|
||||
private:
|
||||
static int m_precision;
|
||||
static int precision;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
Reference in New Issue
Block a user