Commit 2153ef53 authored by Quentin Khan's avatar Quentin Khan

Change scalfmm::type_traits namespace to scalfmm::meta

parent 26ce9e56
......@@ -25,16 +25,17 @@
#include "Components/FBasicCell.hpp"
namespace scalfmm {
namespace tests {
struct test_Node;
struct test_NodeIterator;
struct test_InOrderNodeIterator;
struct test_PreOrderNodeIterator;
struct test_PostOrderNodeIterator;
}
} // close namespace [scalfmm]::tests
namespace type_trait {
namespace meta {
/**
* \brief Sink in type for SFINAE purpose
*
......@@ -105,7 +106,8 @@ public:
/// True if `T::push_back(Args...)` exists, false otherwise
constexpr static const bool value = decltype(get(std::declval<T>()))::value;
};
}
} // close [scalfmm]::meta
namespace sfinae {
......@@ -509,7 +511,7 @@ private:
* \param p Particle to push
*/
template<typename T,
scalfmm::sfinae::use_if<true, scalfmm::type_trait::has_push, T, particle_t> = nullptr>
scalfmm::sfinae::use_if<true, scalfmm::meta::has_push, T, particle_t> = nullptr>
void particle_push(T& container, const particle_t& p) {
container.push(p);
}
......@@ -526,8 +528,8 @@ private:
* \param p Particle to push
*/
template<typename T,
scalfmm::sfinae::use_if<true, scalfmm::type_trait::has_push_back, T, particle_t> = nullptr,
scalfmm::sfinae::use_if<false, scalfmm::type_trait::has_push, T, particle_t> = nullptr>
scalfmm::sfinae::use_if<true, scalfmm::meta::has_push_back, T, particle_t> = nullptr,
scalfmm::sfinae::use_if<false, scalfmm::meta::has_push, T, particle_t> = nullptr>
void particle_push(T& container, const particle_t& p) {
container.push_back(p);
}
......
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