$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] Weird code in lockfree::queue::reserve (compilation error)
From: Aurelien Regat-Barrel (arb_at_[hidden])
Date: 2016-04-02 11:08:40
Hello,
I'm trying to use lockfree::queue, and I get a compiler error when calling reserve(). The following code does not compile with VC++ 2015:
void reserve(size_type n)
{
pool.template reserve<true>(n);
}
And indeed... what does this syntax mean: "pool.template reserve"? You can see it here:
http://www.boost.org/doc/libs/1_60_0/boost/lockfree/queue.hpp
Regards,
Aurélien Regat-Barrel