MxUI / MUI

Multiscale Universal Interface: A Concurrent Framework for Coupling Heterogeneous Solvers
http://mxui.github.io/
Apache License 2.0
55 stars 40 forks source link

Replace broken (on macOS + clang) macros with endian-ness type traits #13

Closed rupertnash closed 5 years ago

rupertnash commented 5 years ago

The MUI demos do not compile on mac OS with clang because the macros for generating the overload sets of istream& operator>>(istream&, T&) and ostream& operator<<(ostream&, const T& ) do not include all the needed types T.

I have reimplemented this with some simple types traits for the endian conversions. The macros for controlling this are now a bit different but I've tried to document this in the source (in endian_traits.h)