How do you get lamdas/etc to compile under the latest TDM in Code::Blocks?

Code:
#include <string>

int main()
{
    auto s = []()
    {
        std::string("hello world");
    };
}
In function 'int main()':
error: expected primary-expression before '[' token
error: expected primary-expression before ']' token
error: unable to deduce 'auto' from '<expression error>'
error: expected ',' or ';' before '{' token
=== Build finished: 4 errors, 0 warnings ===
I tried compiler settings -std=gnu++0x and -std=c++0x. That's what Google said. Neither worked. Thanks :]