You cannot enter new types in std
through a third-party library. You can upgrade your compiler, get a separate std library that your compiler supports, or use a third-party library that provides any
in a different namespace, or write your own.
The first thing you said no.
The second is tricky, since xcode doesn't advertise what its compiler is. Typically, there are two common std libraries that work with clang-llvm compilers; lib ++ and libstd ++. Such an exchange tends to be very expensive, even if the other has the function you want.
The third basically "uses boost
" or the equivalent.
The latter is not difficult; for several days of work (mainly errors after the fact), based on writing types of similar complexity, provided that "good enough" is good enough (that is, they do not fall into ideal guarantees of exclusion or exactly correspond to the standard, etc.) . Naturally, hyperbolic effort will be required to achieve perfection.
source share