Protect optional's deduction guide with the feature macro

* include/std/optional: Use the feature macro.

From-SVN: r256185
This commit is contained in:
Ville Voutilainen 2018-01-03 22:33:10 +02:00 committed by Ville Voutilainen
parent 72df5daa5c
commit 8bdbeed1d0
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
Protect optional's deduction guide with the feature macro
* include/std/optional: Use the feature macro.
2018-01-03 Jakub Jelinek <jakub@redhat.com>
Update copyright years.

View File

@ -1038,7 +1038,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// @}
#if __cpp_deduction_guides >= 201606
template <typename _Tp> optional(_Tp) -> optional<_Tp>;
#endif
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace std