Skip to content

Commit 75d91f5

Browse files
committed
rework errors
1 parent a7b200e commit 75d91f5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/boost/openmethod/initialize.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,6 @@ void registry<Policies...>::compiler::print(const method_report& r) const {
13341334

13351335
template<class Registry>
13361336
auto initialize() {
1337-
auto x = odr_check<Registry>::count;
13381337
if (odr_check<Registry>::count > 1) {
13391338
// Multiple definitions of default_registry detected.
13401339
// This indicates an ODR violation.

include/boost/openmethod/registry.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,9 @@ struct use_class_aux;
811811

812812
} // namespace detail
813813

814+
template<class Registry>
815+
auto initialize();
816+
814817
//! A collection of methods, classes and policies.
815818
//!
816819
//! Methods exist in the context of a registry. Any class used as a method or

0 commit comments

Comments
 (0)