Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Initialized Lambda Capture

$
0
0

According to https://software.intel.com/en-us/articles/c14-features-supported-by-inte... 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)


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>