Boost logo

Boost Users :

From: Igor R. (igor_rubinov_at_[hidden])
Date: 2008-04-21 11:35:19


> If posix_time had been a class, then you could have written> > using boost::posix_time;> > ... posix_time::milliseconds ...> > But since posix_time is a name space that can not be achieved.> > Is there any way in C++ of bringing the name of namespace into the global scope> without bringing every name inside the namespace into the global scope?> > --Johan
 
Your last question contains kindof contradiction :).
Anyway, you can do something like this:
 
namepspace pt = boost::posix_time;
 
pt::milliseconds ...
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us



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