CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2
  1. #1
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Seattle, WA

    Get libstdc++ version from the preprocessor?

    I have a bit of logic that needs to work in a variety of environments. In particular, though, it seems that the libstdc++ that shipped with gcc 4.4.3 has has_trivial_assign, while later versions rename it to has_trivial_copy_assign. I need to figure out how to make my code use the correct template no matter which version it's built against.

    Unfortunately I cannot simply check __GNUC__ and __GNUC_MINOR__. These test the compiler version, but in my case there may be a new compiler building against an older libstdc++ (long story). So I need something else I can check.

    Any suggestions?

  2. #2
    Join Date
    Nov 2003

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