Public Member Functions

numeric_type_proxy< NumericT > Class Template Reference

A proxy object which allows for the use of plain default_numeric_type with template operator+, operator-, operator*, operator/ without running into problems with ambiguity. With the proxy object, one additional conversion is required, thus resolving the ambiguity. More...

#include <forwards.h>

Public Member Functions

 numeric_type_proxy (NumericT value)
NumericT get () const

Detailed Description

template<typename NumericT>
class viennamath::numeric_type_proxy< NumericT >

A proxy object which allows for the use of plain default_numeric_type with template operator+, operator-, operator*, operator/ without running into problems with ambiguity. With the proxy object, one additional conversion is required, thus resolving the ambiguity.

example: operator+(expr e, numeric_t val);

template <typename scalartype>=""> operator+(expr e, ct_constant<value>);

lead to ambiguity for e + 4;


Constructor & Destructor Documentation

numeric_type_proxy ( NumericT  value  )  [inline]

Member Function Documentation

NumericT get (  )  const [inline]

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