]> www.ginac.de Git - ginac.git/blobdiff - ginac/relational.h
- put everything in "GiNaC" namespace
[ginac.git] / ginac / relational.h
index 317b1d23523f041e067013ab984bf9af7f3bc56d..7426e19ecea8af712554ba7ba9575fa1fc179e86 100644 (file)
@@ -26,6 +26,8 @@
 #include <ginac/basic.h>
 #include <ginac/ex.h>
 
 #include <ginac/basic.h>
 #include <ginac/ex.h>
 
+namespace GiNaC {
+
 /** This class holds a relation consisting of two expressions and a logical
  *  relation between them. */
 class relational : public basic
 /** This class holds a relation consisting of two expressions and a logical
  *  relation between them. */
 class relational : public basic
@@ -95,8 +97,12 @@ protected:
 extern const relational some_relational;
 extern type_info const & typeid_relational;
 
 extern const relational some_relational;
 extern type_info const & typeid_relational;
 
-#define ex_to_relational(X) static_cast<relational const &>(*(X).bp)
-
-#endif // ndef __GINAC_RELATIONAL_H__
+// utility functions
+inline const relational &ex_to_relational(const ex &e)
+{
+       return static_cast<const relational &>(*e.bp);
+}
 
 
+} // namespace GiNaC
 
 
+#endif // ndef __GINAC_RELATIONAL_H__