When you pass a pointer to a _DecimalT class template object, the _DecimalT template-class argument in the function call must be the same class template as the _DecimalT class template in the function prototype.
If overflow occurs in a function call with _DecimalT class template arguments, a run-time exception is generated.
The following figure provides an example of passing a pointer to a _DecimalT class template object.
Figure 313. Example of Passing a Pointer to a _DecimalT Class Template Object
|
The output is:
+--------------------------------------------------------------------------------+ |The bcd value is 123.45 | +--------------------------------------------------------------------------------+
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.