For Programmers: Free Programming Magazines  


Home > Archive > VC STL > August 2005 > Wierd warning message









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Wierd warning message
HellenicOne

2005-08-03, 5:07 pm

Can someone explain to me what this warning message means?


c:\program files\microsoft visual studio\vc98\include\map(93) : while
compiling class-template member function 'struct XmlFieldDef::Lookup
*&__thiscall std::map<class MyString,struct XmlFieldDef::Lookup
*,struct XmlFieldDef::MyStringCompare,
class std::allocator<struct XmlFieldDef::Lookup *> >::operator [](const
class MyString &) '


I'm having a hard time understanding it.


Thanks.

Igor Tandetnik

2005-08-03, 5:07 pm

HellenicOne <hellenicone@hotmail.com> wrote:
> Can someone explain to me what this warning message means?
>
>
> c:\program files\microsoft visual studio\vc98\include\map(93) : while
> compiling class-template member function 'struct XmlFieldDef::Lookup
> *&__thiscall std::map<class MyString,struct XmlFieldDef::Lookup
> *,struct XmlFieldDef::MyStringCompare,
> class std::allocator<struct XmlFieldDef::Lookup *> >::operator
> [](const class MyString &) '


This is only half of the error message, telling you where the problem
occurs. Above it, there should be another half actually saying what the
problem is.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


HellenicOne

2005-08-03, 5:07 pm

c:\program files\microsoft visual studio\vc98\include\utility(17) :
warning C4786:
'?$pair@Viterator@?$_Tree@VMyString@@U? $pair@$$CBVMyString@@UEntry@Lookup@XmlFi
eldDef@@@std@@U_Kfn@? $map@VMyString@@UEntry@Lookup@XmlFieldDe
f@@UMyStringCompare@4@V?$a
llocator@UEntry@Lookup@XmlFieldDef@@@std
@@@3@UMyStringCompare@XmlFieldDef@@V? $allocator@UEntry@Lookup@XmlFieldDef@@@3
@@std@@_N'
: identifier was truncated to '255' characters in the browser
information


/// Are you talking about this part? <-------

c:\program files\microsoft visual studio\vc98\include\map(93) : see
reference to class template instantiation 'std::pair<class
std::_Tree<class MyString,struct std::pair<class MyString const ,struct
XmlFieldDef::Lookup::Entry>,struct std::map<class MyString,struct
XmlFieldDef::Lookup::Entry,struct XmlFieldDef::MyStringCompare,class
std::allocator<struct XmlFieldDef::Lookup::Entry> >::_Kfn,struct
XmlFieldDef::MyStringCompare,class std::allocator<struct
XmlFieldDef::Lookup::Entry> >::iterator,bool>' being compiled

c:\program files\microsoft visual studio\vc98\include\map(93) : while
compiling class-template member function 'struct
XmlFieldDef::Lookup::Entry &__thiscall std::map<class GLString,struct
XmlFieldDef::Lookup::Entry,struct XmlFieldDef::GLStr
ingCompare,class std::allocator<struct XmlFieldDef::Lookup::Entry>
>::operator [](const class GLString &)'


Igor Tandetnik

2005-08-03, 5:07 pm

HellenicOne <hellenicone@hotmail.com> wrote:[color=darkred]
> c:\program files\microsoft visual studio\vc98\include\utility(17) :
> warning C4786:
> '?$pair@Viterator@?$_Tree@VMyString@@U? $pair@$$CBVMyString@@UEntry@Lookup@XmlFi
eldDef@@@std@@U_Kfn@? $map@VMyString@@UEntry@Lookup@XmlFieldDe
f@@UMyStringCompare@4@V?$a
> llocator@UEntry@Lookup@XmlFieldDef@@@std
@@@3@UMyStringCompare@XmlFieldDef@@V? $allocator@UEntry@Lookup@XmlFieldDef@@@3
@@std@@_N'

C4786 is annoying but harmless. You can safely ignore it. Put the
following at the top of your stdafx.h file, before including any STL
headers

#pragma warning (disable: 4786)

Most of the time, this will take care of it. If not, see

http://groups.google.com/group/micr...ef263a4e8df9be7

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com