From 3be95e7649fda18ddfd2961c0591bda1e6892671 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Thu, 20 Nov 2014 19:26:42 +0100 Subject: [PATCH] Added missing file --- src/util.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/util.hpp diff --git a/src/util.hpp b/src/util.hpp new file mode 100644 index 00000000..c1ff4bde --- /dev/null +++ b/src/util.hpp @@ -0,0 +1,26 @@ +/* + * util.hpp + * + * Created on: Nov 20, 2014 + * Author: Pietro Incardona + */ + +/*! \brief check that two array match + * + * check that two array match + * + * \param ptr1 Point to array 1 + * \param ptr2 Pointer to array 2 + * \param sz Size of the array + * + */ + +template<typename T> void boost_check_array(const T * ptr1, const T * ptr2, size_t sz) +{ + // Check the array + for (int i = 0 ; i < sz ; i++) + { + BOOST_REQUIRE_EQUAL(ptr1[i],ptr2[i]); + } +} + -- GitLab