• Harris Hancock's avatar
    MSVC non-const copy capture workaround · f87b3068
    Harris Hancock authored
    MSVC refuses the following code:
    
    struct Foo { Foo(Foo&) {} };
    Foo foo;
    [foo] {}();
    
    because it only seems to want to consider const copy constructors when
    capturing objects by value in lambda capture lists.
    f87b3068
serialize-async.c++ 7.87 KB