You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following are criteria for a successful implementation.
Boost.Optional works for objects (implementation is in here), and is also specialized for lvalue references (implementation is here). The range interface should also work for optional references.
Unit tests, apart from testing the presence of new members and their type, should also demonstrate that optional objects and optioal references can work with a range-based for-loop.
Paper P3168r2 shows examples how the new interface of optional interoperates with C++20 ranges. It would be nice to have such tests also. I do not consider them absolutely necessary. But these tests should be conditionally compiled, as otherwise they would break on pre-C++20 compilers.
Implement P3168R2 in Boost.Optional in a C++11-compatible manner.
The text was updated successfully, but these errors were encountered: