When wrapping C++ code, generate code which uses
std::string::assign(PTR, LEN) rather than assigning std::string(PTR, LEN). Using assign generates more efficient code (tested with GCC 4.1.2). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ef4ca158de
commit
c836c81acb
11 changed files with 46 additions and 45 deletions
|
|
@ -2,7 +2,8 @@ Version 1.3.32 (in progress)
|
|||
============================
|
||||
|
||||
09/17/2007: olly
|
||||
[PHP] Use std::string::assign(PTR, LEN) rather than assigning
|
||||
When wrapping C++ code, generate code which uses
|
||||
std::string::assign(PTR, LEN) rather than assigning
|
||||
std::string(PTR, LEN). Using assign generates more efficient code
|
||||
(tested with GCC 4.1.2).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue