• 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
Re: C++ code compiles with libstdc++ but not libc++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ code compiles with libstdc++ but not libc++


  • Subject: Re: C++ code compiles with libstdc++ but not libc++
  • From: Jean-Denis MUYS <email@hidden>
  • Date: Tue, 02 Oct 2012 16:31:46 +0000
  • Thread-topic: C++ code compiles with libstdc++ but not libc++

On 2 oct. 2012, at 18:18, Howard Hinnant <email@hidden>
 wrote:

> It is this:
>
> template< class T >
> inline bool
> operator!=( const T& x, const T& y )
> {
>    return !( x == y );
> }
>
> that is the trouble maker.
>
> Howard
>


Thanks,

If I remove it, other parts of the library fail to compile (classes with no ancestors in the STL for example).

Besides, I can't see any problem with this template function.

Is there a way for me to resolve the ambiguity, for example by telling the compiler which implementation it should take in priority?

Thanks,

Jean-Denis


 _______________________________________________
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++ code compiles with libstdc++ but not libc++
      • From: Howard Hinnant <email@hidden>
References: 
 >C++ code compiles with libstdc++ but not libc++ (From: Jean-Denis MUYS <email@hidden>)
 >Re: C++ code compiles with libstdc++ but not libc++ (From: Howard Hinnant <email@hidden>)

  • Prev by Date: Re: C++ code compiles with libstdc++ but not libc++
  • Next by Date: Re: C++ code compiles with libstdc++ but not libc++
  • Previous by thread: Re: C++ code compiles with libstdc++ but not libc++
  • Next by thread: Re: C++ code compiles with libstdc++ but not libc++
  • Index(es):
    • Date
    • Thread