Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 28, 2021
1 parent 78373d7 commit e334e5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.hpp
Expand Up @@ -324,7 +324,7 @@ class config
instances--;
}

static const bool do_throw()
static bool do_throw()
{
return instances > 0;
}
Expand Down
4 changes: 3 additions & 1 deletion src/utils/optional_reference.hpp
Expand Up @@ -56,7 +56,9 @@ class optional_reference
if(opt_) {
return opt_->get();
} else {
throw std::bad_optional_access{};
// We're going to drop this codepath once we can use optional::value anyway, but just
// noting we want this function to ultimately throw std::bad_optional_access.
throw std::runtime_error("Optional reference has no value");
}
#endif
}
Expand Down

0 comments on commit e334e5f

Please sign in to comment.