HomePhabricator

[libcxx] Use custom allocator's `construct` in C++03 when available.

Authored by vsapsai on Dec 19 2018, 12:08 PM.

Description

[libcxx] Use custom allocator's construct in C++03 when available.

Makes libc++ behavior consistent between C++03 and C++11.

Can use decltype in C++03 because include/__config defines a macro when
decltype is not available.

Reviewers: mclow.lists, EricWF, erik.pilkington, ldionne

Reviewed By: ldionne

Subscribers: dexonsmith, cfe-commits, howard.hinnant, ldionne, christof, jkorous, Quuxplusone

Differential Revision: https://reviews.llvm.org/D48753

llvm-svn: 349676