]> www.ginac.de Git - ginac.git/blobdiff - ginac/mul.h
- put everything in "GiNaC" namespace
[ginac.git] / ginac / mul.h
index 46b3791e40c3243e72726002ceba69b1833b59b4..4e5a6e63846c10703c06d6d5742671fdc55bef8a 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <ginac/expairseq.h>
 
 
 #include <ginac/expairseq.h>
 
+namespace GiNaC {
+
 /** Product of expressions. */
 class mul : public expairseq
 {
 /** Product of expressions. */
 class mul : public expairseq
 {
@@ -113,6 +115,12 @@ protected:
 extern const mul some_mul;
 extern type_info const & typeid_mul;
 
 extern const mul some_mul;
 extern type_info const & typeid_mul;
 
-#define ex_to_mul(X) static_cast<mul const &>(*(X).bp)
+// utility functions
+inline const mul &ex_to_mul(const ex &e)
+{
+       return static_cast<const mul &>(*e.bp);
+}
+
+} // namespace GiNaC
 
 #endif // ndef __GINAC_MUL_H__
 
 #endif // ndef __GINAC_MUL_H__