Changeset View
Changeset View
Standalone View
Standalone View
devel/boost-libs/files/patch-boost_proto_debug.hpp
- This file was added.
https://github.com/boostorg/proto/commit/660abb07f151 | |||||
--- boost/proto/debug.hpp.orig 2018-11-04 05:16:07 UTC | |||||
+++ boost/proto/debug.hpp | |||||
@@ -115,8 +115,22 @@ namespace boost { namespace proto | |||||
namespace detail | |||||
{ | |||||
// copyable functor to pass by value to fusion::foreach | |||||
- struct display_expr_impl_functor; | |||||
+ struct display_expr_impl; | |||||
+ struct display_expr_impl_functor | |||||
+ { | |||||
+ display_expr_impl_functor(display_expr_impl const& impl): impl_(impl) | |||||
+ {} | |||||
+ template<typename Expr> | |||||
+ void operator()(Expr const &expr) const | |||||
+ { | |||||
+ this->impl_(expr); | |||||
+ } | |||||
+ | |||||
+ private: | |||||
+ display_expr_impl const& impl_; | |||||
+ }; | |||||
+ | |||||
struct display_expr_impl | |||||
{ | |||||
explicit display_expr_impl(std::ostream &sout, int depth = 0) | |||||
@@ -164,21 +178,6 @@ namespace boost { namespace proto | |||||
int depth_; | |||||
mutable bool first_; | |||||
std::ostream &sout_; | |||||
- }; | |||||
- | |||||
- struct display_expr_impl_functor | |||||
- { | |||||
- display_expr_impl_functor(display_expr_impl const& impl): impl_(impl) | |||||
- {} | |||||
- | |||||
- template<typename Expr> | |||||
- void operator()(Expr const &expr) const | |||||
- { | |||||
- this->impl_(expr); | |||||
- } | |||||
- | |||||
- private: | |||||
- display_expr_impl const& impl_; | |||||
}; | |||||
} | |||||