Skip to content
Snippets Groups Projects
Commit 725ab606 authored by Marco Agnese's avatar Marco Agnese Committed by Christoph Grüninger
Browse files

[cleanup] Remove usage of Dune::Conversion<T1,T2>::exists and remove test for it

parent 68e8bcea
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,6 @@ dune_add_test(SOURCES classnametest.cc
dune_add_test(SOURCES concept.cc
LINK_LIBRARIES dunecommon)
dune_add_test(SOURCES conversiontest.cc)
dune_add_test(SOURCES diagonalmatrixtest.cc
LINK_LIBRARIES dunecommon)
......
......@@ -8,7 +8,6 @@ TESTPROGS = \
calloncetest \
check_fvector_size \
classnametest \
conversiontest \
diagonalmatrixtest \
dynmatrixtest \
dynvectortest \
......
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <iostream>
#include <dune/common/typetraits.hh>
int main ()
{
std :: cout << "Conversion from int to double exists? "
<< Dune::Conversion< int, double > :: exists << std :: endl;
return 0;
}
......@@ -131,7 +131,7 @@ namespace Dune
* @brief True if either a conversion from T1 to T2 or vice versa
* exists.
*/
value = Conversion<T1,T2>::exists || Conversion<T2,T1>::exists
value = std::is_convertible<T1,T2>::value || std::is_convertible<T2,T1>::value
};
};
......
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