| 294 | |
| 295 | template <typename T> |
| 296 | std::vector<StateT> primitive_state(const Primitive& p) { |
| 297 | std::vector<StateT> state; |
| 298 | if constexpr (has_state<T>) { |
| 299 | extract_state(static_cast<const T&>(p).state(), state); |
| 300 | } |
| 301 | return state; |
| 302 | } |
| 303 | |
| 304 | template <typename T> |
| 305 | std::shared_ptr<T> deserialize_primitive(Reader& is, Stream s) { |
nothing calls this directly
no test coverage detected