Menu

Implementing C++20 support

2021-04-24
2021-04-24
  • Daniel Marjamäki

    I am looking at our C++20 support. I have some trouble that I wonder if somebody can help out with.

    I fail to create a compilable example for this feature: https://github.com/AnthonyCalandra/modern-cpp-features/blob/master/CPP20.md#template-syntax-for-lambdas. I assume something like this should work:

    int foo() {
        auto zero = []<class T>() { return T(0); };
        return zero<int>();
    }
    
     

    Last edit: Daniel Marjamäki 2021-04-24

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.