const qualified return types cause problems with -overload
Brought to you by:
hpcoder
Eg const std::vector<unsigned>& Hypercube::dims(const std::vector<unsigned>& d)
Classdesc inserts a typename because of the std::
, but clang (eg emscripten) has trouble with typename const.
Workaround is to place the const at the end of the type definition.
Anonymous