From 148ffbcdbdf294f03963069ee599716a2a488e04 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 1 Dec 2023 08:40:11 +0100 Subject: [PATCH] Add non C++17 template, just for compilation purposes * tao/x11/optional_t.h: --- tao/x11/optional_t.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tao/x11/optional_t.h b/tao/x11/optional_t.h index 0dd8cde1..4ca6c07a 100644 --- a/tao/x11/optional_t.h +++ b/tao/x11/optional_t.h @@ -14,6 +14,8 @@ #include #include "tao/x11/versioned_x11_namespace.h" +#if defined (ACE_HAS_CPP17) + namespace TAOX11_NAMESPACE { namespace IDL @@ -23,4 +25,20 @@ namespace TAOX11_NAMESPACE } // namespace IDL } // namespace TAOX11_NAMESPACE +#else + +namespace TAOX11_NAMESPACE +{ + namespace IDL + { + template + class optional + { + public: + T value_; + }; + } +} +#endif + #endif // __IDL__OPTIONAL_T_H_INCLUDED__