Skip to content

Commit

Permalink
Add non C++17 template, just for compilation purposes
Browse files Browse the repository at this point in the history
    * tao/x11/optional_t.h:
  • Loading branch information
jwillemsen committed Dec 1, 2023
1 parent 055f81b commit 148ffbc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tao/x11/optional_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include <optional>
#include "tao/x11/versioned_x11_namespace.h"

#if defined (ACE_HAS_CPP17)

namespace TAOX11_NAMESPACE
{
namespace IDL
Expand All @@ -23,4 +25,20 @@ namespace TAOX11_NAMESPACE
} // namespace IDL
} // namespace TAOX11_NAMESPACE

#else

namespace TAOX11_NAMESPACE
{
namespace IDL
{
template<typename T>
class optional
{
public:
T value_;
};
}
}
#endif

#endif // __IDL__OPTIONAL_T_H_INCLUDED__

0 comments on commit 148ffbc

Please sign in to comment.