Get multifile compiling

This commit is contained in:
Jason Turner
2016-04-13 15:26:36 -06:00
parent 6f0d02f158
commit 9603d3910a

View File

@@ -29,7 +29,7 @@ namespace chaiscript
throw std::runtime_error("Attempted to dereference null Boxed_Value");
}
const void *verify_type(const Boxed_Value &ob, const std::type_info &ti, const void *ptr) {
static const void *verify_type(const Boxed_Value &ob, const std::type_info &ti, const void *ptr) {
if (!ob.get_type_info().bare_equal_type_info(ti)) {
throw chaiscript::detail::exception::bad_any_cast();
} else {
@@ -37,7 +37,7 @@ namespace chaiscript
}
}
void *verify_type(const Boxed_Value &ob, const std::type_info &ti, void *ptr) {
static void *verify_type(const Boxed_Value &ob, const std::type_info &ti, void *ptr) {
if (ptr == nullptr || !ob.get_type_info().bare_equal_type_info(ti)) {
throw chaiscript::detail::exception::bad_any_cast();
} else {
@@ -45,13 +45,6 @@ namespace chaiscript
}
}
/*
template<typename Result, typename = enable_if<Result>>
Result cast_helper_inner(const Boxed_Value &ob, const Type_Conversions_State *)
{
}
*/
/// Generic Cast_Helper_Inner, for casting to any type
template<typename Result>
struct Cast_Helper_Inner