Removed default Id = 0 template parameter.

This commit is contained in:
John Wellbelove 2016-06-23 19:19:30 +01:00
parent a12c95cccf
commit bbec14b864
6 changed files with 8 additions and 8 deletions

View File

@ -129,7 +129,7 @@ namespace etl
///\ingroup intrusive_forward_list
///\note TLink must be a base of TValue.
//***************************************************************************
template <typename TValue, typename TLink = etl::forward_link<>, const size_t COUNT_OPTION = etl::count_option::FAST_COUNT >
template <typename TValue, typename TLink = etl::forward_link<0>, const size_t COUNT_OPTION = etl::count_option::FAST_COUNT >
class intrusive_forward_list
{
public:

View File

@ -131,7 +131,7 @@ namespace etl
//***************************************************************************
/// A forward link.
//***************************************************************************
template <const size_t ID_ = 0, const size_t OPTION_ = etl::link_option::DEFAULT>
template <const size_t ID_, const size_t OPTION_ = etl::link_option::DEFAULT>
struct forward_link
: public __private_intrusive_links__::forward_link_base<forward_link<ID_, OPTION_>, ID_, OPTION_>
{
@ -370,7 +370,7 @@ namespace etl
//***************************************************************************
/// A bidirectional link.
//***************************************************************************
template <const size_t ID_ = 0, const size_t OPTION_ = etl::link_option::DEFAULT>
template <const size_t ID_, const size_t OPTION_ = etl::link_option::DEFAULT>
struct bidirectional_link
: public __private_intrusive_links__::bidirectional_link_base<bidirectional_link<ID_, OPTION_>, ID_, OPTION_>
{
@ -683,7 +683,7 @@ namespace etl
//***************************************************************************
/// A tree link.
//***************************************************************************
template <const size_t ID_ = 0, const size_t OPTION_ = etl::link_option::DEFAULT>
template <const size_t ID_, const size_t OPTION_ = etl::link_option::DEFAULT>
struct tree_link
: public __private_intrusive_links__::tree_link_base<tree_link<ID_, OPTION_>, ID_, OPTION_>
{

View File

@ -133,7 +133,7 @@ namespace etl
typedef typename parameter_type<TKey>::type key_value_parameter_t;
typedef etl::forward_link<> link_t; // Default link.
typedef etl::forward_link<0> link_t; // Default link.
// The nodes that store the elements.
struct node_t : public link_t

View File

@ -133,7 +133,7 @@ namespace etl
typedef typename parameter_type<TKey>::type key_value_parameter_t;
typedef etl::forward_link<> link_t; // Default link.
typedef etl::forward_link<0> link_t; // Default link.
// The nodes that store the elements.
struct node_t : public link_t

View File

@ -130,7 +130,7 @@ namespace etl
typedef typename parameter_type<TKey>::type key_value_parameter_t;
typedef etl::forward_link<> link_t;
typedef etl::forward_link<0> link_t;
// The nodes that store the elements.
struct node_t : public link_t

View File

@ -130,7 +130,7 @@ namespace etl
typedef typename parameter_type<TKey>::type key_value_parameter_t;
typedef etl::forward_link<> link_t;
typedef etl::forward_link<0> link_t;
// The nodes that store the elements.
struct node_t : public link_t