-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a compiler error on VS2017 #1040
Conversation
…d for tuple due to changes in parameter expansion logic
@@ -21,6 +21,12 @@ if(NOT MSVC OR MSVC_VERSION LESS 1900) | |||
) | |||
endif() | |||
|
|||
# Enable conformance mode for newer versions of MSVC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/d1parsePackExpressions-
does not enable conformance mode (under Project Settings -> C/C++ -> Language). It only affects the new code for fold expressions.
We should either update the comment or the option. It might make sense to use /permissive-
if we can. We'd like to switch platform over to conformance mode soon and autowiring could be a good first step.
CMakeLists.txt
Outdated
string(APPEND CMAKE_CXX_FLAGS " /d1parsePackExpressions-") | ||
endif() | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra newline here?
src/autowiring/C++11/filesystem.h
Outdated
namespace awfsnamespace = std::experimental::filesystem; | ||
#elif _MSC_VER >= 1900 | ||
namespace awfsnamespace = std::tr2::sys; | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this requires an #else clause for earlier versions of Visual Studio to use autoboost. Unless we're intentionally deprecating them in which case there should be an #error check.
0e78fcc
to
1a74743
Compare
This looks good, but something strange is going on with Travis. Investigating. |
/permissive- would work as well