34 template<
bool StaticBad>
57 template<
int Size,
int Start,
int Length>
63 template<
int Num>
struct N
95 static void check(
int size,
int start,
int length)
109 #ifndef TOON_NDEBUG_MISMATCH
110 if(Start !=
Dynamic && Start != start)
112 std::cerr <<
"TooN slice: mismatch between static and dynamic start.\n";
115 if(Length !=
Dynamic && Length != length)
117 std::cerr <<
"TooN slice: mismatch between static and dynamic length.\n";
120 if(Size !=
Dynamic && Size != size)
122 std::cerr <<
"TooN slice: mismatch between static and dynamic size.\n";
130 #ifdef TOON_TEST_INTERNALS
131 throw Internal::SliceError();
132 #elif !defined TOON_NDEBUG_SLICE
133 std::cerr <<
"TooN slice out of range" << std::endl;
140 #ifdef TOON_TEST_INTERNALS
141 template<
bool StaticBad>
144 throw Internal::StaticSliceError();
Everything lives inside this namespace.
static const int Dynamic
Template size value used to indicate dynamically sized vectors and matrices.
static void check(int size, int start, int length)
static void check()
This function does nothing: it merely exists.