summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 19:56:10 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 19:56:10 +0100
commit700510fe095085572250830dd7c2ff8b41023031 (patch)
tree03645e602c234da0b94a9e6884f04e712de0177d
parent7303fccbc8df09aa1ac8476126e4cc0ae1f0ef62 (diff)
fix: Put destructor in source for impl to be known.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--include/ocl/fix/parser.hpp7
-rw-r--r--src/fix/parser_impl.cpp3
2 files changed, 5 insertions, 5 deletions
diff --git a/include/ocl/fix/parser.hpp b/include/ocl/fix/parser.hpp
index a39b203..c288869 100644
--- a/include/ocl/fix/parser.hpp
+++ b/include/ocl/fix/parser.hpp
@@ -101,7 +101,8 @@ namespace ocl::fix
std::unique_ptr<impl> impl_;
public:
- visitor() = default;
+ visitor();
+ ~visitor();
/// \brief Alias of visit.
range_buffer operator()(const std::string& in);
@@ -112,10 +113,6 @@ namespace ocl::fix
range_buffer visit(const std::string& in);
};
-#if !defined(OCL_FIX_HAS_IMPL)
-struct visitor::impl {};
-#endif
-
} // namespace ocl::fix
#endif // ifndef __OCL_FIX_PARSER
diff --git a/src/fix/parser_impl.cpp b/src/fix/parser_impl.cpp
index b12166a..cc18035 100644
--- a/src/fix/parser_impl.cpp
+++ b/src/fix/parser_impl.cpp
@@ -78,6 +78,9 @@ namespace ocl::fix
}
};
+ visitor::visitor() = default;
+ visitor::~visitor() = default;
+
/// \brief Alias of visit.
range_buffer visitor::operator()(const std::string& in)
{