Danny Robson
f6056153e3
This places, at long last, the core library code into the same namespace as the extended library code.
14 lines
255 B
C++
14 lines
255 B
C++
#include "singleton.hpp"
|
|
|
|
#include "tap.hpp"
|
|
|
|
|
|
int main ()
|
|
{
|
|
cruft::TAP::logger tap;
|
|
|
|
auto obj = cruft::singleton<int>::instantiate (42);
|
|
tap.expect_eq (cruft::singleton<int>::get (), 42, "singleton stores value");
|
|
|
|
return tap.status ();
|
|
} |