mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Remove unused MakeOptional
The only use was to work around a compiler warning in an ancient compiler, which we no longer support.
This commit is contained in:
parent
fadd4029dc
commit
fa7e803f3e
3 changed files with 3 additions and 12 deletions
|
|
@ -13,13 +13,6 @@
|
|||
template <typename T>
|
||||
using Optional = boost::optional<T>;
|
||||
|
||||
//! Substitute for C++17 std::make_optional
|
||||
template <typename T>
|
||||
Optional<T> MakeOptional(bool condition, T&& value)
|
||||
{
|
||||
return boost::make_optional(condition, std::forward<T>(value));
|
||||
}
|
||||
|
||||
//! Substitute for C++17 std::nullopt
|
||||
static auto& nullopt = boost::none;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue