PetrPPetrov / beautiful-capi

Beautiful Capi is a tool which automates the creation of compiler-independent and binary compatible C++ libraries across different C++ compilers
GNU General Public License v3.0
33 stars 3 forks source link

Add argument_implementation_type attribute to mapped types, and to function and method arguments #81

Open PetrPPetrov opened 6 years ago

PetrPPetrov commented 6 years ago

Added argument_implementation_type attribute to mapped types, and to function and method arguments

It is valuable for callbacks, when a method has std_string argument which has implementation_type="std::string".

Bcapi generates the following template for callback implementator: ... virtual void f1(std::string arg1)... ...

however, the base user class accepts only const std::string&: ... virtual void f1(const std::string& arg1) = 0; ...

which causes problems.