X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fstructure.h;h=867cd42dd2cb786ead3d346ba72dfad0872ab5c3;hp=67b29cb4738f9f785630576773f13426bcf6d422;hb=c42b47b4e23aea926597a9b4bee686d66d066470;hpb=d327f3f00c66a79d42855939866047b3e8caa630 diff --git a/ginac/structure.h b/ginac/structure.h index 67b29cb4..867cd42d 100644 --- a/ginac/structure.h +++ b/ginac/structure.h @@ -3,7 +3,7 @@ * Wrapper template for making GiNaC classes out of C++ structures. */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,10 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __GINAC_STRUCTURE_H__ -#define __GINAC_STRUCTURE_H__ - -#include +#ifndef GINAC_STRUCTURE_H +#define GINAC_STRUCTURE_H #include "ex.h" #include "ncmul.h" @@ -31,8 +29,9 @@ #include "operators.h" #include "print.h" -namespace GiNaC { +#include +namespace GiNaC { /** Comparison policy: all structures of one type are equal */ template @@ -211,7 +210,7 @@ protected: GINAC_ASSERT(is_a(other)); const structure & o = static_cast(other); - return struct_is_equal(&obj, &o.obj); + return this->struct_is_equal(&obj, &o.obj); } unsigned calchash() const { return inherited::calchash(); } @@ -238,13 +237,12 @@ int structure::compare_same_type(const basic & other) const GINAC_ASSERT(is_a(other)); const structure & o = static_cast(other); - return struct_compare(&obj, &o.obj); + return this->struct_compare(&obj, &o.obj); } template class CP> registered_class_info structure::reg_info = registered_class_info(registered_class_options(structure::get_class_name(), "basic", typeid(structure))); - } // namespace GiNaC -#endif // ndef __GINAC_STRUCTURE_H__ +#endif // ndef GINAC_STRUCTURE_H