8000 un-break ** cast operation · ChaiScript/ChaiScript@49c89a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 49c89a3

Browse files
committed
un-break ** cast operation
1 parent 4826bdd commit 49c89a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/chaiscript/dispatchkit/boxed_cast_helper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace chaiscript
7676
typedef Result * Result_Type;
7777
static Result_Type cast(const Boxed_Value &ob, const Type_Conversions *)
7878
{
79-
if (!ob.get_type_info().is_const() && ob.get_type_info().bare_equal_type_info(typeid(Result)))
79+
if (!ob.get_type_info().is_const() && ob.get_type_info() == typeid(Result))
8080
{
8181
return static_cast<Result *>(ob.get_ptr());
8282
} else {

0 commit comments

Comments
 (0)
0