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

Most upvoted comments

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