Closed ales-kunst closed 5 years ago
The library works with MSVC /std:c++latest
, /std:c++17
and /std:c++14
set (just tested it).
Naios/continuable@d72e1bfb86d1e53a which depends on function2 also builds with MSVC /std:c++latest
as the CI indicates.
Yep, you are right. I have tried it on another machine which has MSVS 2017 version 15.9.4 and it works. It must be some MSVC problem :(. Thanks for the answer and sorry for any inconvenience.
@Naios
Hello Naios,
I have tried to use your header only library in my test project on MSVS 2017 version 15.3.5 and I get compiler errors. Let me explain the case: I have 3 header files (A.h, B.h, C.h) which look as follows: A.h
B.h
C.h
and func2test.cpp.h
Now if I set Project->Properties->C/C++->Language->C++ Language Standard setting to "ISO C++17 Standard (/std:c++17)" or "ISO C++ Latest Draft Standard (/std:c++latest)" the I get compilation errors (see below compiler log). In case if I set it to "ISO C++14 Standard (/std:c++14)" then everything works fine. Is this a bug or is this designed to work in such a way?
Compiler log:
Commit Hash
On the latest commit (I think the commit hash is fd56e022e1b51a334ae865f2353736b49461718a). I downloaded zip on 28.01.2019. Sorry for my bad knowledge about this stuff. I am very new to this stuff.
Expected Behavior
I think the compiling should go through also with the settings for C++17 on MSVS 2017.
Actual Behavior
Compiler error if Language Standard is set to c++17 or latest.
Steps to Reproduce
Written above in the description of my problem.
Your Environment
Installed Version: Professional
Visual Basic 2017 00370-20004-20195-AA847 Microsoft Visual Basic 2017
Visual C# 2017 00370-20004-20195-AA847 Microsoft Visual C# 2017
Visual C++ 2017 00370-20004-20195-AA847 Microsoft Visual C++ 2017
JavaScript Language Service 2.0 JavaScript Language Service
MenuCommands Extension 1.0 MenuCommands Visual Studio Extension Detailed Info
Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards
Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package
Visual C++ for Linux Development 1.0.7 Visual C++ for Linux Development
Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio