2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-25 18:32:24 +00:00

- Default policy for functions/methods that return const T& is now

return_value_policy<copy_const_reference>().


[SVN r18077]
This commit is contained in:
Bruno da Silva de Oliveira
2003-03-24 23:25:14 +00:00
parent 3d01e6af89
commit 44b2e1ef8b
10 changed files with 119 additions and 63 deletions

View File

@@ -1,3 +1,5 @@
#include <string>
namespace basic {
struct C
@@ -10,6 +12,10 @@ struct C
int foo(int x=1){
return x+1;
}
const std::string& name() { return _name; }
void set_name(const std::string& name) { _name = name; }
std::string _name;
};
int call_f(C& c)