mirror of
https://github.com/wassname/conan-packages.git
synced 2026-07-27 11:20:59 +08:00
initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
|
||||
class A {
|
||||
private:
|
||||
int _x;
|
||||
public:
|
||||
A(int x): _x(x) {}
|
||||
|
||||
int getX(){ return _x; }
|
||||
|
||||
};
|
||||
|
||||
int main() {
|
||||
|
||||
boost::shared_ptr<A> x = boost::make_shared<A>(0);
|
||||
return x->getX();
|
||||
}
|
||||
Reference in New Issue
Block a user