Skip to content
Snippets Groups Projects
Commit 55140355 authored by Oliver Sander's avatar Oliver Sander
Browse files

Use class-name pretty-printing from classname.hh, instead of implementing our own

[[Imported from SVN: r6240]]
parent 868f2ab2
No related branches found
No related tags found
No related merge requests found
......@@ -6,27 +6,13 @@
#define DUNE_ISTL_WITH_CHECKING
#include <dune/common/fmatrix.hh>
#include <dune/common/fassign.hh>
#include <dune/common/classname.hh>
#include <iostream>
#include <algorithm>
#include <vector>
#ifdef __GNUC__
#include <cxxabi.h>
#endif
using namespace Dune;
template <class T>
std::string className(T &t)
{
#ifdef __GNUC__
int status;
return abi::__cxa_demangle(typeid(t).name(),0,0,&status);
#else
return typeid(t).name();
#endif
};
template<typename T, std::size_t n>
int test_invert_solve(T A_data[n*n], T inv_data[n*n],
T x_data[n], T b_data[n])
......
......@@ -7,28 +7,15 @@
#include <dune/common/exceptions.hh>
#include <dune/common/typetraits.hh>
#include <dune/common/static_assert.hh>
#include <dune/common/classname.hh>
#include <iostream>
#include <complex>
#include <typeinfo>
#ifdef __GNUC__
#include <cxxabi.h>
#endif
using Dune::FieldVector;
using std::complex;
template <class T>
std::string className(T &t)
{
#ifdef __GNUC__
int status;
return abi::__cxa_demangle(typeid(t).name(),0,0,&status);
#else
return typeid(t).name();
#endif
};
template<class ft, class rt, int d>
struct FieldVectorMainTest
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment