Ticket #3338: proto-3338.patch
File proto-3338.patch, 1.2 KB (added by , 13 years ago) |
---|
-
boost/proto/transform/arg.hpp
157 157 /// \return <tt>proto::child_c\<N\>(e)</tt> 158 158 /// \throw nothrow 159 159 #ifdef BOOST_HAS_DECLTYPE 160 result_type160 typename mpl::if_c<is_array<result_type>::value, result_type &, result_type>::type 161 161 #else 162 162 typename result_of::child_c<typename impl::expr_param, N>::type 163 163 #endif -
libs/proto/test/matches.cpp
173 173 assert_matches< terminal<char [N]> >( as_expr("hello") ); 174 174 175 175 assert_not_matches< if_<is_same<_value, int>()> >( lit("hello") ); 176 assert_not_matches< if_<is_same<_child_c<0>, int>()> >( lit("hello") ); 176 177 177 178 assert_matches< terminal<std::string> >( lit(std::string("hello")) ); 178 179 assert_matches< terminal<std::string> >( as_child(std::string("hello")) );