Boost Users :
Subject: Re: [Boost-users] [thread]N of args for thread::thread with args
From: Arash Partow (arash_at_[hidden])
Date: 2011-10-19 17:37:22
Marcello Puligheddu wrote:
> Thread Constructor with arguments
> Currently up to nine additional arguments |a1|to |a9|can be
> specified in addition to the function |f|.
> But in
> Launching threads
> is clearly stated
> "There is an unspecified limit on the number of additional arguments
> that can be passed."
AFAIK, for C++11 implementations of std::thread, based on 18.104.22.168 of , the constructor is to make use of variadic templates. I believe that is where the term "unspecified" originates. For pre C++11 implementations, this can only be achieved through multiple overloads with a varying number of parameters, which would inevitably have a trivial upper-limit.
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