Alan de Freitas 88e2378c8a Add -Wmaybe-uninitialized pragma to union storage constructors
GCC 7+ produces false-positive -Wmaybe-uninitialized warnings at -O3
when deeply inlining through union constructors that initialize one
member while another (dummy_) exists. This is the same class of false
positive addressed in boostorg/variant2#55.

The pragmas are placed around the forwarding constructors in both
constexpr_union_storage_t and fallback_union_storage_t.
2026-02-24 12:11:51 -05:00
2021-01-21 19:42:29 +00:00
2024-12-08 14:43:18 +01:00
2026-02-20 16:14:53 +01:00
2024-08-17 00:12:45 +02:00
2021-01-21 19:42:29 +00:00
2003-01-22 17:54:11 +00:00
2014-04-28 16:01:55 +02:00

optional

A library for representing optional (nullable) objects in C++.

optional<int> readInt(); // this function may return either an int or a not-an-int

if (optional<int> oi = readInt()) // did I get a real int
  cout << "my int is: " << *oi;   // use my int
else
  cout << "I have no int";

For more information refer to the documentation provided with this library.

S
Description
No description provided
Readme 3.2 MiB
Languages
C++ 98.7%
CMake 0.7%
Shell 0.4%
HTML 0.2%