Re: [uuid] - boost/algorithm/string.hpp - error no matching function for call to 'find(wchar_t [16], wchar_t* const&, wchar_t&)'
Pavol Droba <droba <at> topmail.sk>
2007-06-01 07:02:23 GMT
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> qimonda.com 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)
(Continue reading)