Suppress spurious "not all control paths return a value" warning in Visual Studio

This commit is contained in:
Phil Nash 2011-03-15 18:49:07 +00:00
parent 6d11d56fea
commit f9cc21a174

View File

@ -174,6 +174,7 @@ public:
index += generator->size();
}
CATCH_INTERNAL_ERROR( "Indexed past end of generated range" );
return T(); // Suppress spurious "not all control paths return a value" warning in Visual Studio - if you know how to fix this please do so
}
///////////////////////////////////////////////////////////////////////////