Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ADL for swapping Optional values (#4569)
Some types support being swapped but may not have declared their std::swap overloads when Poco/Optional.h is first included. This is the case for instance with #include <Poco/Optional.h> #include <array> using Problematic = Poco::Optional<std::array<int, 42> >; With an unqualified call to swap, preceded by using std::swap, we allow argument-dependent lookup to find suitable implementations of swap.
- Loading branch information