[cfe-dev] [libc++] Is libc++ compatible with previous c++ language standard implementation
Zeson Wu via cfe-dev
cfe-dev at lists.llvm.org
Tue Mar 6 22:38:08 PST 2018
Hi, All.
Does anybody know that whether libc++ is compatible with previous c++
language standard implementation or not? For example, I know libc++ is now
support c++11, I will show a example.
http://en.cppreference.com/w/cpp/container/vector/vector. In the reference,
there are two different constructors for vector,
explicit vector( size_type count, const T& value = T(), const Allocator&
alloc = Allocator()); (until C++11) *(1)*
explicit vector( size_type count );(since C++11) (until C++14) *(2)*
If I use vector<T> a(1), which one will be chosen with different c++ std
command option, such as -std=c++03, -std=c++11? Actually, I can not find
the (1) version in libc++ source.
In my option, both two functions should be implemented and guarded by
related language level macro, but I can not find in libc++ source. So
libc++ is not compatible with previous c++ language standard implementation?
Thanks.
--
Zeson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180307/a3303cf5/attachment.html>
More information about the cfe-dev
mailing list