Trying to compile libsass on Visual Studio 2017 on Windows fails with error(s):
operation.hpp(191): error C2027: use of undefined type 'Sass::Selector_List'
operation.hpp(191): error C2027: use of undefined type 'Sass::Complex_Selector'
...
(Errors are repeating themselves, just with different classes).
I'm not very familiar with the code, but changing typeid to use x instead of *x:
throw std::runtime_error(msg + typeid(*x).name());
to:
throw std::runtime_error(msg + typeid(x).name());
Allows libsass to compile successfully.
I compiled it just now with MSVC 2017 and can't reproduce, the change is definitely not dangerous, since it only affects error reporting if CRTP implementation is missing some types. But as I said, can't reproduce ...
I get the same build errors and can confirm the change @Nimce reports does in fact let the build complete on my machine.
I also confirm these build errors and confirm the remedy provided by @Nimce works perfectly. I could compile entire sassc.exe using this tip.
Hi I can also confirm that @Nimce solution fix the issue for me.
Most helpful comment
I get the same build errors and can confirm the change @Nimce reports does in fact let the build complete on my machine.