Skip to content

Commit

Permalink
nomerge: guessing what msvc could complain about
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed Jul 30, 2024
1 parent acf2e70 commit adc440c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/fptostring_test.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#include "yaml-cpp/fptostring.h"
#include "gtest/gtest.h"

namespace YAML {

using YAML::FpToString;

namespace {

/**
* Helper function, that converts double to string as std::stringstream would do
*/
template <typename T>
static std::string convert_with_stringstream(T v, size_t precision = 0) {
std::string convert_with_stringstream(T v, size_t precision = 0) {
std::stringstream ss;
if (precision > 0) {
ss << std::setprecision(precision);
Expand Down Expand Up @@ -239,4 +241,3 @@ TEST(FpToStringTest, conversion_float) {
}

} // namespace
} // namespace YAML

0 comments on commit adc440c

Please sign in to comment.