emaxerrno opened this issue 5 years ago · 1 comments
codegen:c++
... private: std::vector<smf::rpc_service_method_handle> handles_;
should be followed by a handles_.reserve( $HandlesSize$ ); in the codegen
handles_.reserve( $HandlesSize$ );
will will guarantee exact memory use.
in fact it shhould be a std::array<> since we know the size.