From: John P. <jwp...@gm...> - 2018-06-27 23:22:20
|
On Wed, Jun 27, 2018 at 4:55 PM, Renato Poli <re...@gm...> wrote: > Nice. It is important to identify the source of that value (elem. number, > for example). > Is it safe to use the template parameter <T> as a custom class overriding > the sorting operators? > > Something like: > > class MyClass { > double number_to_classify; > unsigned int elem_id; > operator< ( ... ) { ... number_to_classify ...} > } > NumericVector is only for type Number (which corresponds to Real or std::complex depending on how you have compiled libmesh), you can't use it with generic type T. -- John |