#ifndef MSP_DATAFILE_TYPE_H_
#define MSP_DATAFILE_TYPE_H_
-#include <msp/core/inttypes.h>
+#include <cstdint>
#include <msp/core/meta.h>
#include <msp/strings/lexicalcast.h>
{
std::string name;
- Symbol() { }
+ Symbol() = default;
template<typename T>
Symbol(const T &n): name(lexical_cast<std::string>(n)) { }
struct IntType
{
static const char signature = 'i';
- typedef Int64 Store;
+ typedef std::int64_t Store;
typedef Store Load;
};
template<>
struct TypeInfo<unsigned long int, false>: IntType { };
-#if defined(_MSC_VER)
-template<>
-struct TypeInfo<__int64, false>: IntType { };
-
-template<>
-struct TypeInfo<unsigned __int64, false>: IntType { };
-#elif defined(__GNUC__)
template<>
struct TypeInfo<long long int, false>: IntType { };
template<>
struct TypeInfo<unsigned long long int, false>: IntType { };
-#endif
template<>
struct TypeInfo<float, false>: FloatType { };