#include <ginac/basic.h>
#include <ginac/ex.h>
+namespace GiNaC {
+
class numeric;
class add;
extern const power some_power;
extern type_info const & typeid_power;
-#define ex_to_power(X) static_cast<power const &>(*(X).bp)
+// utility functions
+inline const power &ex_to_power(const ex &e)
+{
+ return static_cast<const power &>(*e.bp);
+}
// wrapper functions
inline ex sqrt(ex const & a)
{ return power(a,exHALF()); }
-#endif // ndef __GINAC_POWER_H__
+} // namespace GiNaC
+#endif // ndef __GINAC_POWER_H__