Visual C++ vector warning

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rob

    Visual C++ vector warning

    Hey,

    I'm getting an error message (C4786) while compiling some code that
    contains a vector of strings "vector <string> myVector(4);" i've added
    "#pragma warning(disable :4786)" to the preprocessing stage which has
    disabled the warning messages for my code (i no longer get a warning
    from myCode.cpp) but the warning still appears from an MS Include
    file.

    I'm pretty sure it's ok to ignore this warning in that it only affects
    the debugger and not the programs performance, but does anyone know
    how i mite turn the warning message off?

    Cheers all,

    Rob.

    Error message C4786 below:
    c:\program files\microsoft visual studio\vc98\inc lude\vector(47) :
    warning C4786: 'std::vector<st d::basic_string <char,std::char _traits<char>,s td::allocator<c har>[color=blue]
    >,std::allocato r<std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char>[color=green]
    > >[/color]
    >::vector<std:: basic_string<ch ar,std::char_tr aits<char>,std: :allocator<char >
    >,std::allocato r<std::basic_st ring<char,std:: char_traits<cha r>,std::allocat or<char>[color=green][color=darkred]
    > > >' : identifier was truncated to '255' characters in the debug[/color][/color][/color]
    information
  • Karl Heinz Buchegger

    #2
    Re: Visual C++ vector warning



    rob wrote:[color=blue]
    >[/color]

    Please see the thread entitled: 'So many warnings'
    It covers the very same topic.


    --
    Karl Heinz Buchegger
    kbuchegg@gascad .at

    Comment

    Working...