X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fvalue.h;h=78ec54a89b512599305316c9ff6ad0b35cb67b3e;hb=67146b1b3bcb7d02307dcd4cc8b88cf778b41205;hp=219b0e42dd5174cf8b5eabecf55df7f5b03b17d5;hpb=5c98c1f499413c41fd46ddf71a46b481338d7d6b;p=libs%2Fdatafile.git diff --git a/source/value.h b/source/value.h index 219b0e4..78ec54a 100644 --- a/source/value.h +++ b/source/value.h @@ -4,7 +4,6 @@ #include #include #include -#include "except.h" #include "type.h" namespace Msp { @@ -40,9 +39,6 @@ typedef std::vector ValueArray __attribute__((deprecated)); template inline T Value::get_() const { - if(sig!=TypeInfo::signature) - throw TypeError("Type mismatch"); - return data.value::Store>(); } @@ -51,10 +47,8 @@ inline FloatType::Store Value::get_() const { if(sig==IntType::signature) return data.value(); - else if(sig!=FloatType::signature) - throw TypeError("Type mismatch"); - - return data.value(); + else + return data.value(); } } // namespace DataFile