Commit c199cca0 authored by Quentin Khan's avatar Quentin Khan

Add forward declaration of variadic_vector unit test class as a friend

parent 6455e6a0
......@@ -44,15 +44,18 @@ using has_multi_rebind = typename std::enable_if<check_multi_allocator_rebind<Al
template<typename Alloc, typename... Ts>
using lacks_multi_rebind = typename std::enable_if<!check_multi_allocator_rebind<Alloc, Ts...>::value>::type*;
#ifdef VARIADIC_VECTOR_DEBUG
class utest_variadic_vector;
#endif
// Forward declaration
template<class Allocator, typename TypeTuple, typename IndexList>
class variadic_vector_impl {};
// Forward declaration
template<typename TypeTuple, typename IndexList>
class variadic_vector_iterator {};
template<class Allocator, typename TypeTuple, typename IndexList>
class variadic_vector_impl {};
/** \brief A variadic vector
*
* \tparam Allocator An allocator class such as `Allocator::template
......@@ -70,6 +73,10 @@ class variadic_vector_impl {};
template<class Allocator, typename... Types, std::size_t... Indices>
class variadic_vector_impl<Allocator, std::tuple<Types...>, inria::index_sequence<Indices...> > {
#ifdef VARIADIC_VECTOR_DEBUG
friend class utest_variadic_vector;
#endif
public:
using value_type = std::tuple<Types...>;
......
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