[squid-dev] [PATCH] Improve support for std::uniform_*_distribution
Kinkie
gkinkie at gmail.com
Tue Aug 25 12:30:29 UTC 2015
Hi,
the attached patch fixes the detection and useage of
std::uniform_*_distribution (with fallback to std::tr1::uniform_* ):
- it implements caching on the autoconf checks
- checks for #include <tr1/random> for future proofing
- defines preprocessor wrappers in compat/types.h with include guards
- uses those preprocessor wrappers. The user-visible effect is to bring
uniform_*_distribution into the application scope.
std::uniform_*_distribution still works but doesn't benefit from the
portability improvements
- implements c++11 guards against RegexPattern move operators
- completes rule-of-five implementation in RegexPattern.
This patch still will not build, as icc 13.1 doesn't support the override
keyword.
More effort coming up on that.
--
Francesco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150825/41979a1f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icc-portability-improvements.patch
Type: application/octet-stream
Size: 9232 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150825/41979a1f/attachment.obj>
More information about the squid-dev
mailing list