mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-22 12:28:04 -05:00
14 lines
153 B
C++
14 lines
153 B
C++
#include <tr1/memory>
|
|
|
|
struct Foo{
|
|
int a;
|
|
};
|
|
|
|
std::tr1::shared_ptr<Foo> p;
|
|
|
|
extern "C" int plus_one(int a)
|
|
{
|
|
p.reset(new Foo);
|
|
return a+1;
|
|
}
|