summaryrefslogtreecommitdiff
path: root/boost/log/utility/setup/from_settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/log/utility/setup/from_settings.hpp')
-rw-r--r--boost/log/utility/setup/from_settings.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/boost/log/utility/setup/from_settings.hpp b/boost/log/utility/setup/from_settings.hpp
index 27691bf2da..be1c1bc0b6 100644
--- a/boost/log/utility/setup/from_settings.hpp
+++ b/boost/log/utility/setup/from_settings.hpp
@@ -18,7 +18,7 @@
#include <string>
#include <boost/smart_ptr/shared_ptr.hpp>
-#include <boost/utility/enable_if.hpp>
+#include <boost/core/enable_if.hpp>
#include <boost/type_traits/is_base_and_derived.hpp>
#include <boost/log/detail/setup_config.hpp>
#include <boost/log/sinks/sink.hpp>
@@ -126,8 +126,8 @@ inline void register_sink_factory(std::string const& sink_name, shared_ptr< sink
* \param factory Pointer to the custom sink factory. Must not be NULL.
*/
template< typename FactoryT >
-inline typename enable_if<
- is_base_and_derived< sink_factory< typename FactoryT::char_type >, FactoryT >
+inline typename boost::enable_if_c<
+ is_base_and_derived< sink_factory< typename FactoryT::char_type >, FactoryT >::value
>::type register_sink_factory(const char* sink_name, shared_ptr< FactoryT > const& factory)
{
typedef sink_factory< typename FactoryT::char_type > factory_base;
@@ -147,8 +147,8 @@ inline typename enable_if<
* \param factory Pointer to the custom sink factory. Must not be NULL.
*/
template< typename FactoryT >
-inline typename enable_if<
- is_base_and_derived< sink_factory< typename FactoryT::char_type >, FactoryT >
+inline typename boost::enable_if_c<
+ is_base_and_derived< sink_factory< typename FactoryT::char_type >, FactoryT >::value
>::type register_sink_factory(std::string const& sink_name, shared_ptr< FactoryT > const& factory)
{
typedef sink_factory< typename FactoryT::char_type > factory_base;