[GiNaC-list] Namespace error with is_ex_the_function

Alexei Sheplyakov alexei.sheplyakov at gmail.com
Tue Oct 20 22:09:29 CEST 2015


Hi,

On Mon, Oct 19, 2015 at 12:12 AM, Jacob Garber <jgarber1 at ualberta.ca> wrote:

> std::cout << GiNaC::is_ex_the_function(x, GiNaC::sin) << std::endl;

is_ex_the_function is a macro, and the preprocessor has no idea about
C++ namespaces.

> Removing `GiNaC::` from `is_ex_the_function` compiles fine.

Which is the right way to use the `is_ex_the_function' macro.

Best regards,
      Alexey


More information about the GiNaC-list mailing list