diff mbox series

[committed] libstdc++: Remove redundant reclaration of std::optional

Message ID 20240820205617.306724-1-jwakely@redhat.com
State New
Headers show
Series [committed] libstdc++: Remove redundant reclaration of std::optional | expand

Commit Message

Jonathan Wakely Aug. 20, 2024, 8:56 p.m. UTC
Tested x86_64-linux. Pushed to trunk.

-- >8 --

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 | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/libstdc++-v3/include/std/optional b/libstdc++-v3/include/std/optional
index 2c4cc260f90..6651686cd1d 100644
--- a/libstdc++-v3/include/std/optional
+++ b/libstdc++-v3/include/std/optional
@@ -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>