]> www.ginac.de Git - ginac.git/blobdiff - ginac/inifcns_trans.cpp
Avoid "catching polymorphic type by value" warnings.
[ginac.git] / ginac / inifcns_trans.cpp
index 98e0caff36aaae386448293c36c4371837513f2e..49e30047f9f78485e84ff4d3650dfd737bc59ef9 100644 (file)
@@ -4,7 +4,7 @@
  *  functions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2020 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
@@ -197,7 +197,7 @@ static ex log_series(const ex &arg,
        // maybe substitution of rel into arg fails because of a pole
        try {
                arg_pt = arg.subs(rel, subs_options::no_pattern);
-       } catch (pole_error) {
+       } catch (pole_error &) {
                must_expand_arg = true;
        }
        // or we are at the branch point anyways