Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::proto::exprns_::is_proto_expr Struct Reference

Empty type to be used as a dummy template parameter of POD expression wrappers. More...

#include <extends.hpp>

Detailed Description

Empty type to be used as a dummy template parameter of POD expression wrappers.

It allows argument-dependent lookup to find Proto's operator overloads.

proto::is_proto_expr allows argument-dependent lookup to find Proto's operator overloads. For example:

template<typename T, typename Dummy = proto::is_proto_expr>
struct my_terminal
{
, my_terminal<T>
, default_domain
)
};
// ...
my_terminal<int> _1, _2;
_1 + _2; // OK, uses proto::operator+

Without the second Dummy template parameter, Proto's operator overloads would not be considered by name lookup.


The documentation for this struct was generated from the following file: