Menu

#88 const qualified return types cause problems with -overload

3.x
open
nobody
None
2024-08-20
2024-08-20
No

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.

Discussion

Anonymous
Anonymous

Add attachments
Cancel