- removed polymorphic reflection, made static_reflect default because there are cases such as deserializing an array that you need more information than the runtime reflection can provide such as the ability to resize arrays and know the array content type. - refactored iostream, sstream, fstream to be much simpler, fewer indirections, and fixed getline. - json parsing works using code from mace. - value is reimplemented based upon mace::rpc::value and no longer uses the runtime reflection that was removed. - moved the typename utility to its own header
16 lines
346 B
C++
16 lines
346 B
C++
#ifndef _FC_ALIGNED_HPP_
|
|
#define _FC_ALIGNED_HPP_
|
|
namespace fc {
|
|
|
|
template<unsigned int S, typename T=double>
|
|
struct aligned {
|
|
union {
|
|
T _align;
|
|
char _data[S];
|
|
} _store;
|
|
operator char*() { return _store._data; }
|
|
operator const char*()const { return _store._data; }
|
|
};
|
|
|
|
}
|
|
#endif // _FC_ALIGNED_HPP_
|