martinmoene / expected-dark

Expected objects for C++11 and later (and later perhaps C++98 )
MIT License
52 stars 4 forks source link

Add const with constexpr if applicable #9

Closed martinmoene closed 7 years ago

martinmoene commented 7 years ago

clang -std=c++11 warns "warning: 'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const'" for:

prog.cc:113:29:  constexpr value_type && value() &&
prog.cc:637:29: constexpr value_type && operator *() &&
prog.cc:665:29: constexpr value_type && value() &&
prog.cc:684:29: constexpr error_type && error() &&
prog.cc:901:29: constexpr error_type && error() &&

However, it shouldn't in these cases.