summaryrefslogtreecommitdiff
path: root/boost/intrusive/trivial_value_traits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/intrusive/trivial_value_traits.hpp')
-rw-r--r--boost/intrusive/trivial_value_traits.hpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/boost/intrusive/trivial_value_traits.hpp b/boost/intrusive/trivial_value_traits.hpp
index 5c166fdaa1..18d28be92c 100644
--- a/boost/intrusive/trivial_value_traits.hpp
+++ b/boost/intrusive/trivial_value_traits.hpp
@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztanaga 2006-2012
+// (C) Copyright Ion Gaztanaga 2006-2013
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
@@ -13,6 +13,12 @@
#ifndef BOOST_INTRUSIVE_TRIVIAL_VALUE_TRAITS_HPP
#define BOOST_INTRUSIVE_TRIVIAL_VALUE_TRAITS_HPP
+#if defined(_MSC_VER)
+# pragma once
+#endif
+
+#include <boost/intrusive/detail/config_begin.hpp>
+#include <boost/intrusive/intrusive_fwd.hpp>
#include <boost/intrusive/link_mode.hpp>
#include <boost/intrusive/pointer_traits.hpp>
@@ -22,7 +28,11 @@ namespace intrusive {
//!This value traits template is used to create value traits
//!from user defined node traits where value_traits::value_type and
//!node_traits::node should be equal
-template<class NodeTraits, link_mode_type LinkMode = normal_link>
+template<class NodeTraits, link_mode_type LinkMode
+ #ifdef BOOST_INTRUSIVE_DOXYGEN_INVOKED
+ = safe_link
+ #endif
+>
struct trivial_value_traits
{
typedef NodeTraits node_traits;
@@ -43,4 +53,6 @@ struct trivial_value_traits
} //namespace intrusive
} //namespace boost
+#include <boost/intrusive/detail/config_end.hpp>
+
#endif //BOOST_INTRUSIVE_TRIVIAL_VALUE_TRAITS_HPP