Ticket #3034: boost-03.patch
File boost-03.patch, 1.7 KB (added by , 13 years ago) |
---|
-
boost/parameter/aux_/arg_list.hpp
a b 211 211 // Create a new list by prepending arg to a copy of tail. Used 212 212 // when incrementally building this structure with the comma 213 213 // operator. 214 arg_list(TaggedArg arg, Next const& tail)214 arg_list(TaggedArg in_arg, Next const& tail) 215 215 : Next(tail) 216 , arg( arg)216 , arg(in_arg) 217 217 {} 218 218 219 219 // A metafunction class that, given a keyword and a default -
boost/parameter/aux_/maybe.hpp
a b 33 33 BOOST_DEDUCED_TYPENAME remove_reference<reference>::type 34 34 >::type non_cv_value; 35 35 36 explicit maybe(T value)37 : value( value)36 explicit maybe(T in_value) 37 : value(in_value) 38 38 , constructed(false) 39 39 {} 40 40 … … 48 48 this->destroy(); 49 49 } 50 50 51 reference construct(reference value) const51 reference construct(reference in_value) const 52 52 { 53 return value;53 return in_value; 54 54 } 55 55 56 56 template <class U> 57 reference construct2(U const& value) const57 reference construct2(U const& in_value) const 58 58 { 59 new (m_storage.bytes) non_cv_value( value);59 new (m_storage.bytes) non_cv_value(in_value); 60 60 constructed = true; 61 61 return *(non_cv_value*)m_storage.bytes; 62 62 } 63 63 64 64 template <class U> 65 reference construct(U const& value) const65 reference construct(U const& in_value) const 66 66 { 67 return this->construct2( value);67 return this->construct2(in_value); 68 68 } 69 69 70 70 void destroy()