You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwedm::Exception(edm::errors::LogicError) << "Attempt to access an empty Wrapper aa";
30
+
throwedm::Exception(edm::errors::LogicError) << "Attempt to access an empty Wrapper";
42
31
}
43
32
return *w.product();
44
33
}
45
34
46
35
T& getWrappedObj_(WrapperType& w) {
47
36
if (not w.isPresent()) {
48
-
throwedm::Exception(edm::errors::LogicError) << "Attempt to access an empty Wrapper bb";
37
+
throwedm::Exception(edm::errors::LogicError) << "Attempt to access an empty Wrapper";
49
38
}
50
39
return w.bareProduct();
51
40
}
@@ -75,6 +64,9 @@ namespace ngt {
75
64
return;
76
65
} else {
77
66
auto& w = static_cast<WrapperType const&>(*getWrapperBasePtr());
67
+
// Each serialiser stores a pointer to the wrapper used to initialize it as "const edm::WrapperBase*"
68
+
// For serialisers used for writing, that were initialized with a non-const wrapper, the const_cast below is safe because the wrapper was originally non-const.
69
+
// For serialisers used for reading, that were initialized with a const wrapper, this function cannot be called because it is not marked as const.
0 commit comments