// If we have static_assert we can give a more useful error message
// than if we simply have no operator defined at all:
//
template<classOther>
expression&operator=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not assign to a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator+=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator+= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator-=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator-= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator*=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator*= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator/=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator/= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator%=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator%= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator|=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator|= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator&=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator&= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator^=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator^= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator<<=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator<<= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator>>=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator>>= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
// If we have static_assert we can give a more useful error message
// than if we simply have no operator defined at all:
//
template<classOther>
expression&operator=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not assign to a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator+=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator+= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator-=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator-= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator*=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator*= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator/=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator/= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator%=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator%= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator|=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator|= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator&=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator&= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator^=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator^= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator<<=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator<<= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator>>=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator>>= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
// If we have static_assert we can give a more useful error message
// than if we simply have no operator defined at all:
//
template<classOther>
expression&operator=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not assign to a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator+=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator+= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator-=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator-= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator*=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator*= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator/=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator/= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator%=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator%= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator|=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator|= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator&=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator&= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator^=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator^= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator<<=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator<<= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator>>=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator>>= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
// If we have static_assert we can give a more useful error message
// than if we simply have no operator defined at all:
//
template<classOther>
expression&operator=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not assign to a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator+=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator+= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator-=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator-= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator*=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator*= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator/=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator/= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator%=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator%= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator|=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator|= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator&=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator&= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator^=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator^= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator<<=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator<<= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator>>=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator>>= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
// If we have static_assert we can give a more useful error message
// than if we simply have no operator defined at all:
//
template<classOther>
expression&operator=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not assign to a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator++(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not increment a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--()
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
expression&operator--(int)
{
// This should always fail:
static_assert(sizeof(*this)==INT_MAX,"You can not decrement a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator+=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator+= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator-=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator-= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator*=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator*= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator/=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator/= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator%=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator%= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator|=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator|= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator&=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator&= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator^=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator^= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator<<=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator<<= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");
return*this;
}
template<classOther>
expression&operator>>=(constOther&)
{
// This should always fail:
static_assert(sizeof(Other)==INT_MAX,"You can not use operator>>= on a Boost.Multiprecision expression template: did you inadvertantly store an expression template in a \"auto\" variable? Or pass an expression to a template function with deduced temnplate arguments?");