| 184 | |
| 185 | template <class T> |
| 186 | size_t Serializer::get_size(const T &obj) |
| 187 | { |
| 188 | // This should really be used to avoid simply copying complex objects that are not trivially copyable |
| 189 | // std::is_trivially_copyable is shipped with GCC 5 |
| 190 | // static_assert(std::is_trivially_copyable<T>::value, "Missing Serializer::get_size overload for T = "/* __PRETTY_FUNCTION__*/); |
| 191 | |
| 192 | return sizeof(T); |
| 193 | } |
| 194 | |
| 195 | /* |
| 196 | * get_size specializations |
nothing calls this directly
no outgoing calls
no test coverage detected