[PATCH] D49808: [libc++] Factor duplicate code into function templates
Louis Dionne via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 25 11:16:08 PDT 2018
ldionne created this revision.
ldionne added a reviewer: mclow.lists.
Herald added a reviewer: EricWF.
Herald added subscribers: cfe-commits, dexonsmith, christof.
The exact same code was replicated 11 times for implementing the basic_istream
input operators (those that don't use numeric_limits). The same code was also
duplicated twice for implementing the basic_istream input operators that take
numeric_limits into account.
This commit factors the common code into function templates to avoid
the duplication.
Repository:
rCXX libc++
https://reviews.llvm.org/D49808
Files:
libcxx/include/istream
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49808.157316.patch
Type: text/x-patch
Size: 13528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180725/cc29bb7b/attachment-0001.bin>
More information about the cfe-commits
mailing list