• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
C++ STL question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C++ STL question


  • Subject: C++ STL question
  • From: "Dan Caugherty" <email@hidden>
  • Date: Tue, 11 Nov 2008 21:29:21 -0500

Hi there --

I don't know if this is an appropriate question for this group, but
here I go anyway..

I'm building a project with Leopard, Xcode 3, and GCC 4.0, and I
noticed that I get the following warning when using the STL binder
classes:

warning: base class 'struct std::binary_function<myClass, myClass,
bool>' has a non-virtual destructor

Hmm. Well, there *is* no destructor defined explicitly for this
struct. GCC, I suppose, is using the default (non-virtual) destructor.
Whatever the case may be, this warning seems rather silly in this
context.

I'd eventually like to port this to a build system for another
platform entirely, and the administrators for that system will not
tolerate compiler warnings, even though this one is completely
harmless.

Maybe this is more of a C++ question than an Xcode question, but I've
heard on this list that the C++ Standard Library that comes with this
version of GCC is borked. (So it's sort of an Xcode question. In a
very indirect way.) Am I staring at an example of this? And is there
any way I can defeat this warning?

TIA,
-- Dan Caugherty
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: C++ STL question
      • From: "Michael Crawford" <email@hidden>
  • Prev by Date: Re: Disk thrashing when opening a project
  • Next by Date: Re: C++ STL question
  • Previous by thread: Re: _CFXPreferencesSetValue crash...
  • Next by thread: Re: C++ STL question
  • Index(es):
    • Date
    • Thread