[bind10-dev] std::make_pair

Francis Dupont fdupont at isc.org
Mon Oct 8 21:14:38 UTC 2012


> So this breaks botan builds on windows? (I really need to take some
> time and set up visualstudio)

=> yes it breaks in an ASN file (and win7dev.lab.isc.org can be used
if you'd like).

> I scanned through the Botan sources (10.1), and found 4 occurrences.
> However, one of those was actually ifdef'd (replacing a normal use of
> make_pair, i.e. without the types), an according to the comment it is
> there because of a probem in sunstudio. It does not provide any
> further context, but it may be relevant.
> 
> (in src/utils/stl_util.h)
> 
> #if defined(BOTAN_BUILD_COMPILER_IS_SUN_STUDIO)
>    // Work around a strange bug in Sun Studio
>    multimap.insert(std::make_pair<const K, V>(key, value));
> #else
>    multimap.insert(std::make_pair(key, value));
> #endif

=> this doesn't break (either it doesn't raise an error or it is
not used on Windows...). Perhaps this requires more details for
a bug report?

Regards

Francis Dupont <fdupont at isc.org>


More information about the bind10-dev mailing list