C++ doesn’t support template typedefs (for now)

Currently C++ doesn’t support template typedefs so I’ve used the most common solution, proposed by Herb Sutter (http://gotw.ca/gotw/079.htm), to typedef boost::shared_future<T> as future<T>:

template
struct future {
typedef boost::shared_future type;
};

future::type future_int;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s