mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
parent
8b7fe33bf1
commit
58faea1cf2
@ -971,3 +971,13 @@ TEST_CASE("Mismatched numeric types only convert necessary params")
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE("type_conversion to bool")
|
||||||
|
{
|
||||||
|
auto module = std::make_shared<chaiscript::Module>();
|
||||||
|
struct T {
|
||||||
|
operator bool() const { return true; }
|
||||||
|
};
|
||||||
|
module->add(chaiscript::type_conversion<T, bool>());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user