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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user