diff --git a/test/src/unit-regression.cpp b/test/src/unit-regression.cpp index 3dfcef0b8..a2467dc76 100644 --- a/test/src/unit-regression.cpp +++ b/test/src/unit-regression.cpp @@ -33,6 +33,17 @@ DOCTEST_GCC_SUPPRESS_WARNING("-Wfloat-equal") // for some reason including this after the json header leads to linker errors with VS 2017... #include +///////////////////////////////////////////////////////////////////// +// for #1642 +// Must occur BEFORE header include! +///////////////////////////////////////////////////////////////////// +template class array {}; +template class object {}; +template class string {}; +template class number_integer {}; +template class number_unsigned {}; +template class number_float {}; + #define private public #include using nlohmann::json; @@ -1799,13 +1810,3 @@ TEST_CASE("regression tests, exceptions dependent") } } #endif - -///////////////////////////////////////////////////////////////////// -// for #1642 -///////////////////////////////////////////////////////////////////// -template class array {}; -template class object {}; -template class string {}; -template class number_integer {}; -template class number_unsigned {}; -template class number_float {}; \ No newline at end of file