This code used to work properly before commit '5865097ac9a0ed4431976ce2345c8b6aff9ababa' where branch 'redo-number-converters' was merged. Please note, that the issue occurs with all number types but everything works properly with the same code but using std::string as container element type.
I attach patch that works for me, but it's not cover all platform specific types.
Assume we register standard std::vector class with 'double' elements. C++:
And then create object of this class in Lua and call push_back() method. Lua:
As a result we get a runtime error:
This code used to work properly before commit '5865097ac9a0ed4431976ce2345c8b6aff9ababa' where branch 'redo-number-converters' was merged. Please note, that the issue occurs with all number types but everything works properly with the same code but using std::string as container element type.
I attach patch that works for me, but it's not cover all platform specific types.
Luabind number_converter patch.txt