
26 Mar
2012
26 Mar
'12
3:25 a.m.
AMDG On 03/25/2012 12:33 PM, Cromwell Enage wrote:
In emulation mode, given the following definition:
template <typename Container> struct some_metafunction { typedef BOOST_TYPEOF_TPL( Container().insert( typename Container::iterator() , typename Container::value_type() ) ) type; };
Which of the following types need to be registered?
1. The argument passed as `Container` 2. The result of `typename Container::iterator` 3. The result of `typename Container::value_type`
Almost forgot:
4. The result type of the expression passed into `BOOST_TYPEOF_TPL`.
(4) only. BOOST_TYPEOF doesn't inspect the contents of the expression. Only its result. In Christ, Steven Watanabe