| 433 | #ifndef BOOST_OPTIONAL_DETAIL_NO_RVALUE_REFERENCES |
| 434 | template<class Expr, class ExprPtr> |
| 435 | void assign_expr ( Expr&& expr, ExprPtr const* tag ) |
| 436 | { |
| 437 | if (is_initialized()) |
| 438 | assign_expr_to_initialized(boost::forward<Expr>(expr),tag); |
| 439 | else construct(boost::forward<Expr>(expr),tag); |
| 440 | } |
| 441 | #else |
| 442 | template<class Expr> |
| 443 | void assign_expr ( Expr const& expr, Expr const* tag ) |
nothing calls this directly
no test coverage detected