
21 Apr
2008
21 Apr
'08
3:35 p.m.
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