Menu

#88 const qualified return types cause problems with -overload

3.x
closed
None
2024-11-07
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

  • High Performance Coder

    • status: open --> closed
    • assigned_to: High Performance Coder
     
  • High Performance Coder

    Done.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB