MCPcopy Create free account
hub / github.com/TNG/boost-python-examples / Ctor

Class Ctor

03-Constructors/ctor.cpp:4–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <sstream>
3
4struct Ctor
5{
6 Ctor(std::string msg) : mMsg(msg) {}
7 Ctor(double x,double y)
8 {
9 std::stringstream os;
10 os << x << ":" << y << std::ends;
11 set(os.str());
12 }
13 void set(std::string msg) { mMsg = msg; }
14 std::string greet() { return mMsg; }
15 std::string mMsg;
16};
17
18#include <boost/python.hpp>
19using namespace boost::python;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected