c++ - Does C++11 or C++14 support "&& const" in declaration -
is following definition (from piece of c++ source code) valid?
struct test_ { int i; test_(int j) : i(j) { } int try() && { return i; } int try() && const { return -i; } }; i mean if it's valid put const after &&. code overload resolution ref-qualifier.
i know const && valid. wonder if "&& const" supported in c++11 or c++14.
Comments
Post a Comment