Skip to content
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

Merged
merged 3 commits into from
Jan 18, 2018
Merged

Fix a compiler error on VS2017 #1040

merged 3 commits into from
Jan 18, 2018

Conversation

yeswalrus
Copy link
Contributor

/permissive- would work as well

…d for tuple due to changes in parameter expansion logic
@yeswalrus yeswalrus requested a review from jdonald January 6, 2018 02:22
@@ -21,6 +21,12 @@ if(NOT MSVC OR MSVC_VERSION LESS 1900)
)
endif()

# Enable conformance mode for newer versions of MSVC
Copy link
Contributor

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()


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra newline here?

@leapmotion leapmotion deleted a comment from hanzou-x Jan 16, 2018
namespace awfsnamespace = std::experimental::filesystem;
#elif _MSC_VER >= 1900
namespace awfsnamespace = std::tr2::sys;
#endif
Copy link
Contributor

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.

@yeswalrus yeswalrus force-pushed the fix-vs2017-conformance branch from 0e78fcc to 1a74743 Compare January 17, 2018 00:53
@jdonald
Copy link
Contributor

jdonald commented Jan 17, 2018

This looks good, but something strange is going on with Travis. Investigating.

@jdonald jdonald merged commit af1e209 into master Jan 18, 2018
@jdonald jdonald deleted the fix-vs2017-conformance branch January 18, 2018 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants