mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-05 17:30:07 +08:00
Remove unnecessary code
This commit is contained in:
parent
bc8a4c42fa
commit
515ee711ce
@ -137,15 +137,6 @@ namespace chaiscript
|
|||||||
{
|
{
|
||||||
return data;
|
return data;
|
||||||
} else {
|
} else {
|
||||||
#ifdef CHAISCRIPT_LIBCPP
|
|
||||||
/// \todo fix this someday after libc++ is fixed.
|
|
||||||
if (std::string(typeid(To).name()).find("Assignable_Proxy_Function") != std::string::npos) {
|
|
||||||
auto from = detail::Cast_Helper<std::shared_ptr<From> >::cast(t_from, nullptr);
|
|
||||||
if (std::string(typeid(*from).name()).find("Assignable_Proxy_Function_Impl") != std::string::npos) {
|
|
||||||
return std::static_pointer_cast<To>(from);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
throw std::bad_cast();
|
throw std::bad_cast();
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user