Boost logo

Boost :

From: Pavol Droba (droba_at_[hidden])
Date: 2007-06-01 03:02:23


Hi,

uuid is using std::find without qualification and so it conflicts with
boost::find declared in the string_algo.

Looking through the uuid.hpp code, there are lots of 'using namespace'
directives. Althoug they are only local, they could cause problems,
especialy in the scope of boost.

Regards,
Pavol.

Oliver.Kowalke_at_[hidden] wrote:
> Hi,
> I found that the error no matching function for call to 'find(wchar_t
> [16], wchar_t* const&, wchar_t&)' in uuid.hpp is raised by header
> <boost/algorithm/string.hpp>.
> Please look into test:
>
> #include <boost/algorithm/string.hpp>
> #include <boost/uuid.hpp>
>
> int main( int argc, char *argv[])
> {
> try
> {
> boost::uuid id("a74ac3b9-32d8-4f18-b292-05df553eda95");
> return EXIT_SUCCESS;
> }
> catch ( std::exception const& e)
> { std::cerr << e.what() << std::endl; }
> catch (...)
> { std::cerr << "unhandled exception" << std::endl; }
>
> return EXIT_FAILURE;
> }
>
> /opt/boost/include/boost-1_34/boost/uuid.hpp:210: instantiated from
> 'void boost::uuid::construct(const std::basic_string<_CharT, _Traits,
> _Alloc>&) [with ch = wchar_t, char_traits = std::char_traits<wchar_t>,
> alloc = std::allocator<wchar_t>]'
> /opt/boost/include/boost-1_34/boost/uuid.hpp:84: instantiated from here
> /opt/boost/include/boost-1_34/boost/uuid.hpp:469: error: no matching
> function for call to 'find(wchar_t [16], wchar_t* const&, wchar_t&)'
>
> Oliver
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk