]> www.ginac.de Git - cln.git/blobdiff - include/cln/ring.h
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
[cln.git] / include / cln / ring.h
index fcdcac9dda82e2ef902a2e8c457fd75c2324c8d8..b79d9abd3f034bde1052baf003e0f3bc11c5e8a2 100644 (file)
@@ -381,7 +381,15 @@ public:
 
 extern const cl_ring cl_no_ring;
 extern cl_class cl_class_no_ring;
-CL_REQUIRE(cl_no_ring)
+
+class cl_no_ring_init_helper
+{
+       static int count;
+public:
+       cl_no_ring_init_helper();
+       ~cl_no_ring_init_helper();
+};
+static cl_no_ring_init_helper cl_no_ring_init_helper_instance;
 
 inline cl_ring::cl_ring ()
        : cl_rcpointer (as_cl_private_thing(cl_no_ring)) {}