mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 864747 - Optional<T&> should be able to receive a value in the constructor. r=bz
This commit is contained in:
parent
c77bebe772
commit
846945f3f9
@ -228,6 +228,11 @@ public:
|
||||
Optional()
|
||||
{}
|
||||
|
||||
explicit Optional(const T& aValue)
|
||||
{
|
||||
mImpl.construct(aValue);
|
||||
}
|
||||
|
||||
bool WasPassed() const
|
||||
{
|
||||
return !mImpl.empty();
|
||||
|
Loading…
Reference in New Issue
Block a user