|
Boost Users : |
From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-05-02 09:56:03
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of chun ping wang
Sent: Tuesday, May 02, 2006 12:54 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] passing variable into template parameters.
Its more of a c++ question but i wonder how would I pass constant variables into template parameters such as nth_index_iterator.
Example: void func(const int& var)
{
nth_index_iterator<var>::type;
}
Is this possible whats the work around this limitation?
[Nat] Could you just make func() a template function, and have 'var' be a template parameter rather than a runtime function parameter?
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