Roland Illig <rillig%NetBSD.org@localhost> wrote: > Jan Schaumann wrote: > >audio/id3lib 10 tech-pkg%NetBSD.org@localhost > What about this patch? No luck, it seems: CC -DHAVE_CONFIG_H -I. -I.. -I../include/id3 -I../include -DID3_NEED_WCHAR_TEMP LATE -I/scratch/audio/id3lib/work.beamish/.buildlink/include -O2 -64 -c field_bi nary.cpp -Wp,-MDupdate,.deps/field_binary.TPlo -DPIC -o .libs/field_binary.o cc-1282 CC: ERROR File = /usr/include/CC/string, Line = 622 More than one instance of overloaded function "min" matches the argument list. Function symbol function template "dami::min(const T &, const T &)" is ambiguous by inheritance. Function symbol function template "std::min(const _Tp &, const _Tp &)" is ambiguous by inheritance. The argument types are: (std::basic_string<unsigned char, std::char_traits<unsigned char>, std::allocator<unsigned char>>::size_type, unsigned long). __s.begin() + __pos + min(__n, __s.size() - __pos)); ^ detected during instantiation of "std::basic_string<unsigned char, std::char_traits<unsigned char>, std::allocator<unsigned char>> &std::basic_string<unsigned char, std::char_traits<unsigned char>, std::allocator<unsigned char>>::assign(const std::basic_string<unsigned char, std::char_traits<unsigned char>, std::allocator<unsigned char>> &, std::basic_string<unsigned char, std::char_traits<unsigned char>, std::allocator<unsigned char>>::size_type, std::basic_string<unsigned char, std::char_traits<unsigned char>, std::allocator<unsigned char>>::size_type)" at line 69 of "field_binary.cpp" 1 error detected in the compilation of "field_binary.cpp". *** Error code 1 > The erase<> function uses some (unqualified) min<>. Is there a way how > to specify precedence of one of the namespaces? Like this: > > using namespace std { > _binary.erase(); > }; Dunno, sorry. -Jan -- This is so cool I have to go to the bathroom.
Attachment:
pgp3OaImDBDB_.pgp
Description: PGP signature