Re: Are clang++ and libc++ compatible?

From: Zhihao Yuan <lichray_at_gmail.com>
Date: Tue, 12 Nov 2013 15:05:32 -0500
On Tue, Nov 12, 2013 at 11:54 AM, Steve Kargl
<sgk_at_troutmask.apl.washington.edu> wrote:
>       struct Entry {
>         time_t date;
>         Severity severity;
>         std::deque<Entry> messages;
>         std::string message;
>         bool is_child;
>         Entry() : is_child(false) { }
>       };

This is a libc++ QoI issue; T had better not be required to be compete
at the instantiation time of the class template itself.  I've reported this
forward this issue to libc++ upstream.

BTW, iirc VC STL has the same issue.  But libstdc++ has an honorable
history of supporting incomplete type in STL declaration.

-- 
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/
Received on Tue Nov 12 2013 - 19:05:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:44 UTC