Boost Users :
From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-01-16 18:36:02
Same example but at compile time. Of course the right solution is to have boost::bind have some sort of compile-time value.
From: boost-users-bounces_at_[hidden] on behalf of Sohail Somani
Sent: Tue 1/16/2007 3:23 PM
To: boost-users_at_[hidden]; boost-users_at_[hidden]
Subject: Re: [Boost-users] [Bind] arity of arbitrary object
Hi, I've attached up something that seems to kind of maybe work in g++. Don't have access to any other compiler at the moment, so I can't tell you if it will work or if it is even conforming to standard. The solution only helps at runtime currently as I'm not exactly sure how to decompose the bind_t object at compile time (NOT a template guru). It uses boost bind internals as of 1.33.1.
I'd appreciate if someone could warp this to somehow get the right information at compile time.
Hope it helps!
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