#ifndef COMMON_H__ #define COMMON_H__ namespace Arrays { typedef unsigned int size_type; struct Exception {}; struct OutOfRange : public Exception {}; // For compatibility with MS Visual Studio, max() is provided // here instead of using std::max() inside the arrays code template inline const T& max(const T& a, const T& b) { return a < b ? b : a; } } #endif