|
Boost : |
From: SASAKI Takashi (tsasaki99_at_[hidden])
Date: 2007-09-29 22:17:24
When I use some classes in boost, I have experienced
my Visual C++ 2005 IntelliSense stops working.
For example, the following code makes IntelliSense crushed.
----------------- cut here ---------------------
#include <iostream>
#include <boost/filesystem/path.hpp>
int main(int argv, char** argv) {
.....
std:: <==========IntelliSense works
boost::filesystem::path p;
p. <==========IntelliSense doesn't work
std:: <==========IntelliSense doesn't work
---------------- cut here -----------------------
I have examined codes which cause IntelliSense crush
and have noticed that `an inner class (a class in other class)'
confuses IntelliSense. In the case of boost::filesystem::path,
class boost::filesystem::basic_path::iterator is the cause.
When I moved the definition of `class iterator'
out of `class basic_path', IntelliSense works.
While typing the code above, InteliSense works.
----------------- cut here ------------------
boost::filesystem::path p("xyz/a.txt");
boost::filesystem::path::iterator i;
i = p.begin();
std::cout << p.string() << std::endl;
std::cout << *i << std::endl;
++i;
std::cout << *i << std::endl;
----------------- cut here -----------------
I wonder that which is appropriate to post this message
for developer's list or user's list. I found some
messages in user's list but I couldn't find workaround.
So I decided to post it to this list.
I also know that this post is annoying for non Visual C++ users.
So I apologise in advance.
---------
Takashi SASAKI
tsasaki99_at_[hidden]
sasaki_at_[hidden]
http://www.windy.cx/
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk