Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / config / test / boost_no_lambdas.ipp
index 689f90b..edd3341 100644 (file)
 
 namespace boost_no_cxx11_lambdas {
 
+template <class Func>
+int f(Func f)
+{
+   return f();
+}
+
 int test()
 {
-  [](){};
-  return 0;
+  return f([](){ return 0; });
 }
 
 }