Boost logo

Boost :

Subject: [boost] Detecting reuslt_of support - Error with VC 9
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2009-02-09 07:43:54


I've developepd this code snippet to detect if a type has the proper
inner types for supporting result_of protocol :

http://codepad.org/mcY4K7Sf

It works fine under gcc and icc but fail under VC 9 with the following
error :

error C2903: 'result' : symbol is neither a class template nor a
function template
error C3202: 'result' : invalid default argument for template parameter
'<Unknown>', expected a class template
error C2976: 'has_result_impl' : too few template arguments

seems I can't make VC to accept an unspecified template type as a
template template parameter.

Is there any known workaround for this situation I can implement to make
this traits works in VC 9 ?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk