Closed moshater closed 5 years ago
Have you changed language standard to c++17?
My bad, forget to check the setting. It's working now.
having same issue, but i have already set C++17 option...
having same issue, but i have already set C++17 option...
What's the compiler output
Any chances the header may be successfully processed by a C++14 compiler (VS2015)?
I was going to try it in an old project (which is built with vc140 toolset), but your classes use C++17 features (like auto
in template parameters).
@Anton-V-K
I could probably port it to c++14 or maybe even 11 l. I'll take a look tomorrow.
@Anton-V-K Making it c++14 would require a bit too much work at the moment.
What I was able to fix or know that fixing isn't hard
auto
with non type template parameters: easy fix by adding parameter for the char type separatelyWhat is harder to fix and I don't want to touch though is the technique of using lambda to populate variadic template of chars from a string literal. All the other approaches that I remember/had used in the past are really ugly and usually generate tons of intermediary templates.
@JustasMasiulis , thanks for looking into this. It's a pity the code can't be compiled in the c++14 mode.
template<auto... Cs>
MSVC complain about it.