mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-21 19:57:24 -05:00
Update test.cpp (#12)
This commit is contained in:
@@ -18,8 +18,6 @@ int main() {
|
|||||||
g["Number" ] << "'-'? [0-9]+ ('.' [0-9]+)?" >> [](auto e){ return stof(e.string()); };
|
g["Number" ] << "'-'? [0-9]+ ('.' [0-9]+)?" >> [](auto e){ return stof(e.string()); };
|
||||||
g.setStart(g["Sum"]);
|
g.setStart(g["Sum"]);
|
||||||
|
|
||||||
// Execute a string
|
|
||||||
|
|
||||||
// create an event
|
// create an event
|
||||||
lars::Event<float> onResult;
|
lars::Event<float> onResult;
|
||||||
onResult.connect([&](float v){ result = !(int(v) == 5); });
|
onResult.connect([&](float v){ result = !(int(v) == 5); });
|
||||||
|
|||||||
Reference in New Issue
Block a user