mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Make write_dataset for Position an overload (not specialization)
This commit is contained in:
parent
0fba0e287c
commit
c72ff04afb
1 changed files with 2 additions and 2 deletions
|
|
@ -183,8 +183,8 @@ write_dataset(hid_t obj_id, const char* name, const std::array<T, N>& buffer)
|
|||
write_dataset(obj_id, 1, dims, name, H5TypeMap<T>::type_id, buffer.data(), false);
|
||||
}
|
||||
|
||||
template<> inline void
|
||||
write_dataset<Position>(hid_t obj_id, const char* name, Position r)
|
||||
inline void
|
||||
write_dataset(hid_t obj_id, const char* name, Position r)
|
||||
{
|
||||
std::array<double, 3> buffer {r.x, r.y, r.z};
|
||||
write_dataset(obj_id, name, buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue