Skip to content
Snippets Groups Projects
Commit 39e83c80 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[hash] Remove remaining TR1 and Boost fall-back code.

parent 770f3ba9
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,6 @@ add_executable("arraytest" arraytest.cc)
add_executable("bigunsignedinttest" bigunsignedinttest.cc)
target_link_libraries("bigunsignedinttest" "dunecommon")
add_dune_boost_flags("bigunsignedinttest")
add_executable("bitsetvectortest" bitsetvectortest.cc)
add_executable("check_fvector_size" check_fvector_size.cc)
......
......@@ -87,7 +87,7 @@ arraylisttest_SOURCES = arraylisttest.cc
arraytest_SOURCES = arraytest.cc
bigunsignedinttest_SOURCES=bigunsignedinttest.cc
bigunsignedinttest_CPPFLAGS = $(AM_CPPFLAGS) $(BOOST_CPPFLAGS)
bigunsignedinttest_CPPFLAGS = $(AM_CPPFLAGS)
bitsetvectortest_SOURCES = bitsetvectortest.cc
......
......@@ -4,13 +4,11 @@
#include "config.h"
#endif
#include <dune/common/bigunsignedint.hh>
#include <limits>
#include <iostream>
#if HAVE_BOOST_HASH
#include <boost/functional/hash.hpp>
#endif
#include <dune/common/bigunsignedint.hh>
#include <dune/common/hash.hh>
int main()
{
......@@ -68,35 +66,8 @@ int main()
a=a*b*b;
std::cout<<a.todouble()<<std::endl;
#if HAVE_DUNE_HASH
{
Dune::hash<Dune::bigunsignedint<100> > hasher;
std::cout << "Dune::hash: " << hasher(a) << std::endl;
}
#if HAVE_STD_HASH
{
std::hash<Dune::bigunsignedint<100> > hasher;
std::cout << "std::hash: " << hasher(a) << std::endl;
}
#endif
#if HAVE_TR1_HASH
{
std::tr1::hash<Dune::bigunsignedint<100> > hasher;
std::cout << "std::tr1::hash: " << hasher(a) << std::endl;
}
#endif
#if HAVE_BOOST_HASH
{
boost::hash<Dune::bigunsignedint<100> > hasher;
std::cout << "boost::hash: " << hasher(a) << std::endl;
}
#endif
#endif // HAVE_DUNE_HASH
Dune::hash<Dune::bigunsignedint<100> > hasher;
std::cout << "Dune::hash: " << hasher(a) << std::endl;
}
catch(Dune::MathError e) {
......
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