roystgnr / MetaPhysicL

Metaprogramming and operator-overloaded classes for numerical simulations
Other
22 stars 12 forks source link

Add long int type support #46

Closed dschwen closed 5 years ago

dschwen commented 5 years ago

This PR might not be perfect but if you cry out, I'm gonna push it some more.

roystgnr commented 5 years ago

Hmm.. I vaguely remember once hitting a problem where some platforms held differing opinions about which N-byte integer types (with equal N) were distinct types (so you needed separate template instantiations for each one you wanted to use) and which were just different names for the same type (so trying to create separate template instantiations for each gave compiler errors), and I was afraid you'd run into the same problem. ... But you haven't, so we'll worry about that if and when we ever run into it again. Thanks!

dschwen commented 5 years ago

Argh, I forgot about unsigned long...