Open source developer of Doxide for modern C++ documentation, and Birch for probabilistic programming.

  • 5 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: June 24th, 2023

help-circle






  • Yes, that’s right, generic context, and you may be right on return value optimization. It was for implementing a collection of numerical functions that take array arguments, where the elements of those arrays could be of various arithmetic types, and the return type should be an array of a particular arithmetic type given promotion etc. The implementation was generic, and I was wanting to validate its correctness wrt return values having the correct arithmetic type without implicit copy.