boostorg / histogram

Fast multi-dimensional generalized histogram with convenient interface for C++14
Boost Software License 1.0
313 stars 74 forks source link

Split out dynamic-only tests #388

Closed ecatmur closed 2 months ago

ecatmur commented 1 year ago

Compiling tests under Visual Studio 2019 14.29.30133 (19.29.30145.0) fails with a not very helpful error:

libs\histogram\test\algorithm_project_test.cpp(186,1): fatal error C1903: unable to recover from previous error(s); stopping compilation

This can be fixed by moving the dynamic-only tests into a separate function, so that they are only compiled and run once.

HDembinski commented 2 months ago

@ecatmur Thank you for this nice patch and sorry for the long delay in responding. I added a comment to the code why this was changed. How did you find out this fix?