Commit 3be95e76 authored by incardon's avatar incardon
Browse files

Added missing file

parent e2680297
/*
* 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]);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment