Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #2480 - Abandon use of boost::optional.
After a discussion with Martyn it seems likely that for the version of GCC and/or Boost we have for RHEL6 we are unable to return boost::optional objects from functions without getting the warning I've been trying to fix. Elsewhere, we pass them into functions by reference and therefore avoid the problem. I'm not a huge fan of that option, so in this case exceptions will provide the functionality I need instead. Also, renamed a function and some variables to make things clearer.
- Loading branch information
1 parent
bea4d5b
commit 34d3144
Showing
1 changed file
with
28 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters