Skip to content

Commit

Permalink
Documentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Sep 9, 2013
1 parent 5d0e8e0 commit 37113c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vexcl/temporary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@ struct temporary : public temporary_terminal_expression
/// Create temporary to be reused in a vector expression.
/** The type of the temporary is explicitly specified. */
template <size_t Tag, typename T, class Expr>
#ifndef DOXYGEN
typename std::enable_if<
boost::proto::matches<
typename boost::proto::result_of::as_expr< Expr >::type,
vector_expr_grammar
>::value,
#endif
temporary<T, Tag, Expr>
#ifndef DOXYGEN
>::type
#endif
make_temp(const Expr &expr) {
return temporary<T, Tag, Expr>(expr);
}
Expand All @@ -74,13 +78,17 @@ make_temp(const Expr &expr) {
/** The type of the temporary is automatically deduced from the supplied
* expression. */
template <size_t Tag, class Expr>
#ifndef DOXYGEN
typename std::enable_if<
boost::proto::matches<
typename boost::proto::result_of::as_expr< Expr >::type,
vector_expr_grammar
>::value,
#endif
temporary<typename detail::return_type<Expr>::type, Tag, Expr>
#ifndef DOXYGEN
>::type
#endif
make_temp(const Expr &expr) {
return temporary<typename detail::return_type<Expr>::type, Tag, Expr>(expr);
}
Expand Down

0 comments on commit 37113c3

Please sign in to comment.