- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to https://software.intel.com/en-us/articles/c14-features-supported-by-intel-c-compiler ICC15 should support initialized lambda captures. Yet code like this
*this = make([f, theLocalData = std::move(theLocalData)] {
fails to compile:
error: expected a "]"
1> *this = make([f, theLocalData = std::move(theLocalData)] {
1> ^
clang compiles it, so I assume I am using that feature correctly: I didn't find any compiler option to enable C++14, it is set to use C++11 features though. Bug in the compiler or am I using it wrong?
(Sorry for the formatting, but this editor is totally messed up on Safari)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please provide a complete test case? Also please try the -std=c++14 option.
thanks,
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how would I set -std=c++14 in Visual Studio? The property editor only offers to enable C++11 support.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page