Browse Source

Gmt module: Fix segfault.

gmtdatadir
Michael Uleysky 8 years ago
parent
commit
3d1f1ea499
  1. 2
      modules/gmt/modgmt_param.h

2
modules/gmt/modgmt_param.h

@ -18,7 +18,7 @@ class Parameter
template<class Conv> template<class Conv>
struct Adapter<true,Conv> {static const typename Conv::ValueType& Val(const Conv& cnv) {return cnv.Default();}}; struct Adapter<true,Conv> {static const typename Conv::ValueType& Val(const Conv& cnv) {return cnv.Default();}};
template<class Conv> template<class Conv>
struct Adapter<false,Conv> {static typename Conv::ValueType&& Val(const Conv& cnv) {return std::move(typename Conv::ValueType());}}; struct Adapter<false,Conv> {static typename Conv::ValueType Val(const Conv& cnv) {return typename Conv::ValueType();}};
template<class C> template<class C>
struct CheckDefault struct CheckDefault

Loading…
Cancel
Save