|
Boost Users : |
From: Hicham Mouline (hicham_at_[hidden])
Date: 2008-05-01 07:25:35
Hello,
trying out Pete Becker's "c++ std lib ext" exercises,
ex1 p155
#include <iostream>
#include <typeinfo>
#include <boost/utility/result_of.hpp>
typedef float (*floatfct)(float);
int main(int argc, char* argv[])
{
typedef typename boost::result_of<floatfct(float, float)>::type resultype;
std::cout<< typeid(resultype).name() << std::endl;
}
should fail, because result_of is instantiated with a callable type with 2 float args,
while it's been defined as taking 1 float arg only?
with intel10.1-MSVC8-boost1.35, it links.
rds,
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net