fix null_node construction form default ctor

- NVCC fails parsing null_node((node_ptr()))
This commit is contained in:
Oliver Kowalke
2017-10-31 15:54:01 +01:00
parent 80c22df9dc
commit f4047cd759

View File

@@ -69,7 +69,7 @@ class circular_list_algorithms
//! <b>Throws</b>: Nothing. //! <b>Throws</b>: Nothing.
BOOST_INTRUSIVE_FORCEINLINE static void init(const node_ptr &this_node) BOOST_INTRUSIVE_FORCEINLINE static void init(const node_ptr &this_node)
{ {
const node_ptr null_node((node_ptr())); const node_ptr null_node = node_ptr();
NodeTraits::set_next(this_node, null_node); NodeTraits::set_next(this_node, null_node);
NodeTraits::set_previous(this_node, null_node); NodeTraits::set_previous(this_node, null_node);
} }