Move assertion from to_address to __to_address
authorGlen Joseph Fernandes <glenjofe@gmail.com>
Thu, 30 Nov 2017 15:07:21 +0000 (15:07 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 30 Nov 2017 15:07:21 +0000 (15:07 +0000)
commit6b590c7a64873d0be0839c661f54276fbbbfded2
treed42c4a6a3884714dd9a4949854a7f5625d695ad6
parentf521d500fcfe4be65d4d00784633d504a635ae17
Move assertion from to_address to __to_address

2017-11-30  Glen Joseph Fernandes  <glenjofe@gmail.com>

* include/bits/ptr_traits.h (__to_address, to_address): Move static
assertion.
* testsuite/20_util/to_address/1_neg.cc: New test.

From-SVN: r255277
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ptr_traits.h
libstdc++-v3/testsuite/20_util/to_address/1_neg.cc [new file with mode: 0644]