test/headers/alloc_strats.h in rbplusplus-0.9.1 vs test/headers/alloc_strats.h in rbplusplus-1.0
- old
+ new
@@ -16,10 +16,12 @@
Neither() {}
~Neither() {}
public:
NoConstructor* getConstructor() { return 0; }
- Neither* getInstance() { return 0; }
+ static Neither* getInstance() { static Neither neither; return &neither; }
+
+ int process(int a, int b) { return a * b; }
};
}
#endif