Skip to content

Commit

Permalink
Fix compilation when HPX_WITH_LOGGING is OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
biddisco committed Jul 21, 2017
1 parent 776c713 commit 5814e72
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions hpx/util/logging.hpp
Expand Up @@ -259,15 +259,7 @@ namespace hpx { namespace util { namespace detail
{
return l;
}

struct bootstrap_logging { constexpr bootstrap_logging() {} };
constexpr bootstrap_logging lbt_;

template <typename T>
bootstrap_logging const& operator<< (bootstrap_logging const& l, T&&)
{
return l;
}
}

#define LAGAS_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LPT_(lvl) if(true) {} else hpx::util::detail::dummy_log
Expand All @@ -277,6 +269,16 @@ namespace hpx { namespace util { namespace detail
#define LAPP_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LDEB_ if(true) {} else hpx::util::detail::dummy_log

#define LTM_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LRT_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LOSH_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LERR_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LLCO_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LPCS_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LAS_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LBT_(lvl) if(true) {} else hpx::util::detail::dummy_log
#define LSEC_(lvl) if(true) {} else hpx::util::detail::dummy_log

#define LFATAL_ if(true) {} else hpx::util::detail::dummy_log

#define LAGAS_CONSOLE_(lvl) if(true) {} else hpx::util::detail::dummy_log
Expand All @@ -292,7 +294,16 @@ namespace hpx { namespace util { namespace detail
#define LHPX_ENABLED(lvl) (false)
#define LAPP_ENABLED(lvl) (false)
#define LDEB_ENABLED (false)
}}}
}}

struct bootstrap_logging { constexpr bootstrap_logging() {} };
constexpr bootstrap_logging lbt_;

template <typename T>
bootstrap_logging const& operator<< (bootstrap_logging const& l, T&&)
{
return l;
}

#endif
#endif
Expand Down

0 comments on commit 5814e72

Please sign in to comment.