trompeloeil: VS 2017RC compilation errors
VS 2017RC does not accept the self test program compiling_tests.cpp. The compilation error on .IN_SEQUENCE(seq1, seq2) indicates a preprocessing error, but preprocessing to a file reveals code that looks correct and that cannot possibly result in the same compilation error.
I believe that this is a bug in VS 2017 RC, but I have been unable to make a scaled down reproduction of the error which can be used in a bug report, and my VisualStudio expertise is too limited.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (14 by maintainers)
Commits related to this issue
- Fix for Visual Studio 2017, per comments at https://github.com/rollbear/trompeloeil/issues/29 — committed to mlimber/trompeloeil by mlimber 7 years ago
- Fix for Visual Studio 2017 compiler crash -- issue #29 (#38) * Update trompeloeil.hpp * Set theme jekyll-theme-modernist * Fix for Visual Studio 2017, per comments at https://github.com/rollbea... — committed to rollbear/trompeloeil by mlimber 7 years ago
If you want to get unblocked, you can try this source workaround (in trompeloeil.hpp):
#if 1 template <typename… U> struct param_helper { using type = decltype(std::make_tuple(std::declval<U>()…)); }; template <typename … U> using param_t = typename param_helper<U…>::type; #else template <typename … U> using param_t = decltype(std::make_tuple(std::declval<U>()…)); #endif