• 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: Howard Hinnant <email@hidden>
  • Date: Tue, 02 Oct 2012 12:28:03 -0400

On Oct 2, 2012, at 12:16 PM, Jean-Denis MUYS <email@hidden> wrote:

>
> On 2 oct. 2012, at 18:11, Marshall Clow <email@hidden>
>  wrote:
>
>> There's more to this than what you're telling us.
>>
>
> Certainly. Hundreds of files more. I am just not sure what would be relevant/helpful. Are there other project settings that could impact this?
>
> I am trying to work on a reduction of my issue.
>
> The only bottom line is that my code compiles with stdlibc++ in the project settings, but not with libc++.
>
> I'll try to provide more (relevant) info. Any suggestion?

I believe this is a reduced test case:

#include <vector>

using namespace std;

template <class T>
class KVector
    : public vector<T>
{
public:
};

template< class T >
inline bool
operator!=( const T& x, const T& y )
{
    return !( x == y );
}

int main()
{
    typedef int HWND;
    KVector<HWND> colHwndLog;
    for(KVector<HWND>::iterator iterColHwndLog = colHwndLog.begin()
               ;iterColHwndLog != colHwndLog.end()
               ;++iterColHwndLog
               )
        ;
}

Howard


 _______________________________________________
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

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: Jean-Denis MUYS <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