I'm using a lambda function for boilerplate code:
auto import = [&](auto & value){
// Do some stuff
};
As value
is in fact a std::vector
, I need to access its value_type
static member to call a template function on one of its element.
I tried use of decltype
without success :
auto import = [&](auto & value){
decltype(value)::value_type v;
};
Is there any way to do so ?