[squid-dev] std::uniform_int_distribution not available on centos-6

Amos Jeffries squid3 at treenet.co.nz
Sun Aug 23 09:09:35 UTC 2015


On 23/08/2015 8:16 p.m., Kinkie wrote:
> apparently not yet in lib/ntlmauth :(
> 
> icpc: command line warning #10006: ignoring unknown option
> '-Wno-deprecated-register'
> ../../../lib/ntlmauth/ntlmauth.cc(188): error: qualified name is not allowed
>       static std::uniform_int_distribution<uint8_t> dist;
>              ^
> 
> ../../../lib/ntlmauth/ntlmauth.cc(188): error: expected a ";"
>       static std::uniform_int_distribution<uint8_t> dist;
>                                           ^
> 
> ../../../lib/ntlmauth/ntlmauth.cc(191): error: identifier "dist" is undefined
>           nonce[i] = static_cast<char>(dist(mt) & 0xFF);
> 

Strangely include/autoconf.h on the failing builds does contain this:

 /* Leave undefined if std::uniform_int_distribution<T> is supported */
 #define uniform_int_distributon tr1::uniform_int


so it is being detected correctly.

Amos



More information about the squid-dev mailing list