mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-07 17:52:24 +01:00
fix issue #90
We are static-casting to U, so we really have no reason to use references. However, if this comes up again, try applying -ffloat-store to the target executable, per https://github.com/open-source-parsers/jsoncpp/issues/90
This commit is contained in:
parent
2bc6137ada
commit
7d82b14726
@ -11,6 +11,9 @@ ADD_EXECUTABLE( jsoncpp_test
|
|||||||
|
|
||||||
TARGET_LINK_LIBRARIES(jsoncpp_test jsoncpp_lib)
|
TARGET_LINK_LIBRARIES(jsoncpp_test jsoncpp_lib)
|
||||||
|
|
||||||
|
# another way to solve issue #90
|
||||||
|
#set_target_properties(jsoncpp_test PROPERTIES COMPILE_FLAGS -ffloat-store)
|
||||||
|
|
||||||
# Run unit tests in post-build
|
# Run unit tests in post-build
|
||||||
# (default cmake workflow hides away the test result into a file, resulting in poor dev workflow?!?)
|
# (default cmake workflow hides away the test result into a file, resulting in poor dev workflow?!?)
|
||||||
IF(JSONCPP_WITH_POST_BUILD_UNITTEST)
|
IF(JSONCPP_WITH_POST_BUILD_UNITTEST)
|
||||||
|
@ -178,8 +178,8 @@ private:
|
|||||||
|
|
||||||
template <typename T, typename U>
|
template <typename T, typename U>
|
||||||
TestResult& checkEqual(TestResult& result,
|
TestResult& checkEqual(TestResult& result,
|
||||||
const T& expected,
|
T expected,
|
||||||
const U& actual,
|
U actual,
|
||||||
const char* file,
|
const char* file,
|
||||||
unsigned int line,
|
unsigned int line,
|
||||||
const char* expr) {
|
const char* expr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user