In C++ we have class member initializers, yet I cannot seem to use auto/static type deduction for non-static members.
struct Foo {
auto bar = []() { return 1; };
auto baz = "test";
};
That won't work (at least on clang: Apple LLVM version 4.2 (clang-425.0.24)).
Is this just a compiler bug, or does the standard not require this to be supported (and if so, why can't it be)?