This is an archive of the discontinued LLVM Phabricator instance.

Create a deduction guide for basic_string
ClosedPublic

Authored by mclow.lists on Jan 11 2018, 11:40 AM.

Details

Reviewers
EricWF
Summary

First of the C++17 deduction guides (I think).
Uses the new __is_allocator trait.

The failing test is not quite right yet, but the success bits all work.

Diff Detail

Event Timeline

mclow.lists created this revision.Jan 11 2018, 11:40 AM
EricWF accepted this revision.Jan 11 2018, 4:08 PM

LGTM other than inline comments.

include/string
1491

This should be guarded by _LIBCPP_HAS_NO_DEDUCTION_GUIDES.

This revision is now accepted and ready to land.Jan 11 2018, 4:08 PM
mclow.lists closed this revision.Mar 6 2018, 8:08 AM

This was landed as r324619