
26 Oct
2009
26 Oct
'09
9:58 p.m.
Am Monday 26 October 2009 20:50:45 schrieb Philippe Vaucher:
Apparently some compilers don't support template friends. There is the BOOST_NO_MEMBER_TEMPLATE_FRIENDS config macro to detect this though.
There's also a comment below the public comparison functions:
// Tasteless as this may seem, making all members public allows member templates // to work in the absence of member template friends. (Matthew Langston)
thanks, I missed that. I checked the conditions for NO_MEMBER_TEMPLATE_FRIENDS and all current compilers seem to support it. so I guess there is no reason not to use member template friends in new (proposed) boost libraries, unless you intend to make it uber-portable.