optional: Fix compilation on XLClang 16.1.0

The compiler rejects initialization with `= {}`:

    error: chosen constructor is explicit in copy-initialization

Use just `{}` instead.
This commit is contained in:
Brad King 2023-05-25 09:37:28 -04:00 committed by Ben Clayton
parent 1344b56dc5
commit 03cc18678e

View File

@ -75,7 +75,7 @@ class optional {
inline T& operator*(); inline T& operator*();
private: private:
T val = {}; T val{};
bool set = false; bool set = false;
}; };