Quantcast
Viewing latest article 7
Browse Latest Browse All 1616

enable_if lambda capture

I am using V16.0 update 2, and for the moment wish to stick with C++11 (Will look at C++14 in V17 later)

I have a template library that used to work well in the earlier versions of the compiler (C++03), and I am revising them to make use of the C++11 features (in particular variadic templates and use of tuples).

I've got most of the issues worked out except for my templates that manipulate lambda capture objects. Perhaps C++11 "fixed" something (got more strict) with lambda captures. As potential means to work around the issues, I'd like to know if there is a way to determine if a template type is a lambda capture object, and use an enable_if to enable or disable the expansion. something along the line of

  is_lambda_capture< T >::value

to return true or false

Jim Dempsey


Viewing latest article 7
Browse Latest Browse All 1616

Trending Articles