]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove redundant reclaration of std::optional
authorJonathan Wakely <jwakely@redhat.com>
Tue, 20 Aug 2024 10:54:25 +0000 (11:54 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 20 Aug 2024 20:51:50 +0000 (21:51 +0100)
We've already declared optional at the top of the header, so don't need
to do it again.

libstdc++-v3/ChangeLog:

* include/std/optional: Remove redundant redeclaration.

libstdc++-v3/include/std/optional

index 2c4cc260f90ebdff74288a2c91db65b1b92c8466..6651686cd1d0e6f8cf8ec3f1b4db3bb85673df96 100644 (file)
@@ -741,9 +741,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     };
 #endif // __cpp_concepts
 
-  template<typename _Tp>
-  class optional;
-
   template<typename _Tp>
     inline constexpr bool __is_optional_v = false;
   template<typename _Tp>