CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Nov 2002
    Location
    Foggy California
    Posts
    1,245

    Visual C++ STL: How to remove compilation warning C4786 in Visual C++?

    Q: How to remove STL compilation warning C4786 in Visual C++?

    Code:
    warning C4786: 'Some STL template class' : identifier was truncated to '255' characters in the debug information

    A: Visual C++ is just telling you that the name of the STL template class is very long and that it has truncated the name in the debug information only. In theory, this might cause possible collisions when attempting to debug applications, but in pratice this very, very seldom happens if ever.

    You can disable this warning by including the preprocessor directive:
    Code:
    #pragma warning(disable: 4786)

    Last edited by Andreas Masur; July 24th, 2005 at 01:04 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured