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

From: Zhihao Yuan <zy_at_miator.net>
Date: Tue, 12 Nov 2013 12:13:38 -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 should not be required to be compete
at the instantiation time of the class template itself.  I'll forward this
message to libc++.

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 - 16:13:45 UTC

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