Skip to content
Snippets Groups Projects

Use boost::optional to simplify VxCreator

Merged Marco Cattaneo requested to merge cherry-pick-22fc3947 into hlt2016-patches
  1. Mar 15, 2023
    • Rosen Matev's avatar
      Use boost::optional to simplify VxCreator · 3d04b017
      Rosen Matev authored and Marco Cattaneo's avatar Marco Cattaneo committed
      - instead of keeping a seperate bool to flag the presence
        of a 'dummy' trivial value, use boost::optional instead,
        which avoids having to create a 'dummy', and which avoids
        the corresponding bookkeeping. This fixes the longstanding
        warning about hiding virtual functions, as the instance
        which caused the warning isn't instantiated anymore...
      - replace a deprecated std::auto_ptr with std::unique_ptr
      - See merge request !156
      
      (cherry picked from commit 22fc3947)
      
      2c54a7d4 Use boost::optional to simplify VxCreator
      3d04b017
Loading