id summary reporter owner description type status milestone component version severity resolution keywords cc 6590 BOOST_AUTO fails on C++11 lambdas Anders Kaseorg Peder Holt "`BOOST_AUTO` fails on C++11 lambdas as follows (tested with g++ 4.6.2-14ubuntu2): {{{ #!C++ #include BOOST_AUTO(f, [](){}); }}} {{{ $ g++ -c -std=c++0x test.cc test.cc:2:1: error: lambda-expression in unevaluated context test.cc:2:1: error: conversion from ‘’ to non-scalar type ‘’ requested }}} Although it’s apparently not possible to use `typeof` or `decltype` on a lambda expression, this could be fixed by defining `BOOST_AUTO` with C++11 `auto` on compilers that support it: {{{ #!C++ #define BOOST_AUTO(Var, Expr) auto Var = Expr BOOST_AUTO(f, [](){}); }}} " Feature Requests new To Be Determined typeof Boost 1.48.0 Problem