Re: C++ code compiles with libstdc++ but not libc++
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