- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
template< typename _Data >
void
Foo< _Data >::deduceNumberOfSignificant( _Data _field )
{
switch( sizeof( _Data ) )
{
case sizeof( field32 ):
m_significantNumber = 7;
break;
case sizeof( field64 ):
m_significantNumber = 16;
break;
case sizeof( field128 ):
m_significantNumber = 34;
break;
default:
BOOST_ASSERT( "Improper field size" );
}
}