llohse / libnpy

C++ library for reading and writing of numpy's .npy files
MIT License
361 stars 72 forks source link

Extract dtype from template parameter using a unordered_map #21

Closed llohse closed 2 years ago

llohse commented 2 years ago

Change the way the dtype information is generated from the template parameter T.

Possibly fixes #19

caic99 commented 2 years ago

Hi @llohse , Sorry for the really late reply! This patch works fine in gcc-10 for me. Thanks!