Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1724: operator<< displayed as operator<
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tandr
Senior Member

43 Posts

Posted - May 07 2009 :  6:17:46 PM  Show Profile  Reply with Quote
VS2008 SP1 + hotfixes


#include <strstream>
class Msg : public std::ostrstream 
{
public:
   inline Msg& operator<<(const char* str)
   {
       return std::ostrstream::operator<<(str);
       //                               ^ place cursor here
       // (middle of << so it will looks like <|<) and press Alt-G
   }
};


the suggestion box that will come up will show all of the entries as operator<, but if you will select one, it jumps to the correct operator <<.
Thanks,
Andrey

PS. Funny thing that after couple attempts to create an image for this, it a) stopped working completely, b) I realized there is no easy way to attach an image to the post anyway...

PPS.
VA_X.dll file version 10.5.1724.0 built 2009.05.01
Licensed to:
VA X: <[email protected]> (1-user license) Support ends 2010.02.04
DevEnv.exe version 9.0.30729.1
msenv.dll version 9.0.30729.1
Font: Consolas 11(Pixels)
Comctl32.dll version 6.0.2900.5512
Windows XP 5.1 Build 2600 S
2 processors (x86)

Platform: Win32
Stable Includes:
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\include;
D:\\Program Files\\Microsoft SDKs\\Windows\\v6.1\\include;
D:\\Program Files\\Microsoft SDKs\\Windows\\v6.1\\include;
E:\\svn\\repos\\3rd\\boost\\tags\\Boost_1_39_0;

Other Includes:

Stable Source Directories:
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfc;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfcm;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\atl;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\crt\\src;

edit: wrong version, fixed, fixed code



Edited by - tandr on May 07 2009 6:22:04 PM

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - May 09 2009 :  2:24:44 PM  Show Profile  Reply with Quote
Attaching images first, this requires a little extra work, but its fairly easy if you know how. This FAQ entry should help:

http://docs.wholetomato.com?W128

I am seeing the same effect here. Thank you for the clear description.

case=1229

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000