]> www.ginac.de Git - ginac.git/blobdiff - ginac/clifford.h
- put everything in "GiNaC" namespace
[ginac.git] / ginac / clifford.h
index 36a1ff9bf3d0e1c46b7647aec49e24d6abaa42e7..49a3613b13f9424f68f143d98735655b89a88592 100644 (file)
@@ -25,6 +25,9 @@
 
 #include <string>
 #include <ginac/indexed.h>
 
 #include <string>
 #include <ginac/indexed.h>
+#include <ginac/ex.h>
+
+namespace GiNaC {
 
 /** Base class for clifford object */
 class clifford : public indexed
 
 /** Base class for clifford object */
 class clifford : public indexed
@@ -81,10 +84,12 @@ private:
 extern const clifford some_clifford;
 extern type_info const & typeid_clifford;
 
 extern const clifford some_clifford;
 extern type_info const & typeid_clifford;
 
-// macros
+// utility functions
+inline const clifford &ex_to_clifford(const ex &e)
+{
+       return static_cast<const clifford &>(*e.bp);
+}
 
 
-#define ex_to_clifford(X) static_cast<clifford const &>(*(X).bp)
+} // namespace GiNaC
 
 #endif // ndef __GINAC_CLIFFORD_H__
 
 #endif // ndef __GINAC_CLIFFORD_H__
-
-