Nana Sakisaka
Nana Sakisaka
For this kind of interface: ```cpp TreeItem *create_item(TreeItem *parent = nullptr, int32_t idx = -1); ``` Current `binding_generator.py` generates implementation like below: ```cpp TreeItem *Tree::create_item(TreeItem *parent, int32_t idx) { /*...
Since #695, `String::String(const char*)` is now internally calling `string_new_with_latin1_chars` instead of `string_new_with_utf8_chars`. diff: https://github.com/godotengine/godot-cpp/commit/bf8fc4c53d07cf8ac4d8343364899c197076fbc2#diff-20a0dfd8072691f654c12adb6aecabee9d3247fb99488b37539dab1d967c97b8L77-L79 Because of this change, we can't pass non-latin1 characters for String-like parameters anymore. For example, `node->get_node("Path/To/NonLatin1/名前")`...
These are definetely evil: ``` cpp #ifndef PI #define PI 3.14159265358979323846 #endif #ifndef TWO_PI #define TWO_PI 6.28318530717958647693 #endif #ifndef M_TWO_PI #define M_TWO_PI 6.28318530717958647693 #endif #ifndef FOUR_PI #define FOUR_PI 12.56637061435917295385 #endif...
## IU - International Units This unit is specified for common chemicals where you can't determine effectiveness by its absolute value. In those cases IU is used, which varies among...
In Spirit.Qi, we had `qi::debug(...)` function for specifying custom debug handler. https://github.com/boostorg/spirit/blob/889babc3839e12ac0bba448ecd7150956d17c783/include/boost/spirit/home/qi/nonterminal/debug_handler.hpp#L75-L123 However in X3's current implementation, `simple_trace` is hard-coded: https://github.com/boostorg/spirit/blob/889babc3839e12ac0bba448ecd7150956d17c783/include/boost/spirit/home/x3/nonterminal/detail/rule.hpp#L60-L91 I'd love to see custom debug handler support in...
I was writing JSON-like grammar which have many popular types, such as "Int", "Float", "String", "Variable", "Array", etc. In my X3 grammar, the content of "Array" rule contains "Variable", and...
These two both work: ```cpp // defined in boost/spirit/home/x3/string/literal_string.hpp auto const dollar_def = x3::standard::lit("$"); // double quotes // `lit` delegates to: boost/spirit/home/x3/char/char.hpp auto const dollar_def = x3::standard::lit('$'); // single quotes...
I think we could provide simple typedefs in EDIT: `bool_policies` must be updated too; however there's some hard-coded string literals in bool_policies.hpp which simply do not match the unicode char...
I've recently started adding `boostorg/boost` as a git submodule for my own application. After experimenting, I've discovered that doing so will make your `git status` commands very slow (here ~3secs;...