mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
e00b4de672
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. |
||
---|---|---|
.. | ||
Poco |