ntg::force Struct Reference

Force the value to be assigned without checks. More...

#include <behavior.hh>

List of all members.

Static Public Member Functions

std::string name ()


Detailed Description

Force the value to be assigned without checks.

Quite similar to unsafe, but even if the destination type has a strict behavior, by using cast::force we ensure that no check will be performed.

Example:

int_u<8, strict> a; a = force::get<int_u<8, strict> >::check_plus(5, 6);

=> no check

This construction is useful when we want to use code from a particular behavior to a type defined with another behavior.

Definition at line 137 of file integre/ntg/real/behavior.hh.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 15 20:13:48 2004 for Olena by doxygen 1.3.6-20040222