Bug 864747 - Optional<T&> should be able to receive a value in the constructor. r=bz

This commit is contained in:
Andrea Marchesini 2013-04-24 08:36:10 -04:00
parent c77bebe772
commit 846945f3f9

View File

@ -228,6 +228,11 @@ public:
Optional()
{}
explicit Optional(const T& aValue)
{
mImpl.construct(aValue);
}
bool WasPassed() const
{
return !mImpl.empty();