|
Boost Users : |
From: Bill Buklis (boostuser_at_[hidden])
Date: 2007-08-02 13:52:13
I have written visualizers for the other pointer containers, but realize
that I had forgotten about ptr_list. I previously posted the visualizer code
for ptr_vector, ptr_map, ptr_multimap, ptr_set, ptr_multiset, and also
array. If you don't have it I can easily post it again.
I took a quick stab at ptr_list, but I think I may have run into a
limitation (or bug) in the visualizer. It's not letting me cast the final
expression to the templated parameter. I tried it with a direct cast and
that worked, but it seems to lose the template information in the resulting
expression.
The problem is in the expression ($T1*)$e._Myval. It seems that $T1 (the
template parameter) is not valid at this point. If, for example the list is
defined as ptr_list<int>, then the expression (int*)$e._Myval will work, but
obviously we can't hard code that here. Any one have any ideas here?
First attempt posted here (this does not include the iterators yet):
;---------------------------------------------------------------------------
--- ; boost::ptr_list ;--------------------------------------------------------------------------- --- boost::ptr_list<*>{ children ( #list ( head : ($c.c_._Myhead->_Next), size : $c.c_._Mysize, next : _Next ) : ($T1*)$e._Myval ) preview ( #( "[", $e._Mysize, "](", #list ( head : $c.c_._Myhead->_Next, size : $c.c_._Mysize, next : _Next ) : ($T1*)$e._Myval, ")" ) ) } -- Bill Buklis -- > -----Original Message----- > From: boost-users-bounces_at_[hidden] [mailto:boost-users- > bounces_at_[hidden]] On Behalf Of Filip Konvicka > Sent: Thursday, August 02, 2007 8:51 AM > To: boost-users_at_[hidden] > Cc: boost-docs_at_[hidden] > Subject: Re: [Boost-users] Visual Studio 2005 ptr_list visualizer? > > Ovanes Markarian (2.8.2007 15:28): > > On Thu, August 2, 2007 15:23, Filip Konvicka wrote: > > > >> If you're impatient, however, you can read the May / June thread > >> "[multi_index] MSVS 2005 visualizers" on this list, it contains about > >> all the know-how that I currently have :-) > >> > > I read this mailing already. But it is for sure better to have some > tutorial. > Exactly, no need for you to go through all the pain. > > I can try to start with an installer. As I understand visualizers must > be copied in the text file (mentioned in this mailing). I will think how > one can best install and uninstall them. > > > OK, great! I was thinking about wrapping the "installed" code in some > specially formatted comment blocks, which could include the author's > name and visualizer version (for upgrading / uninstall purposes?) What > do you think? > > BTW, if you don't mind, I suggest that we move this discussion to > [boost-docs], I've just managed to re-subscribe from SF to > lists.boost.org :-) > > Cheers, > Filip > > _______________________________________________ > Boost-users mailing list > Boost-users_at_[hidden] > http://lists.boost.org/mailman/listinfo.cgi/boost-users
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