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

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -