Hello all,

I hope it's OK if I include Rob's reply here and he will receive this email
as well. The topic is still actual.

From: robikarmann <[email protected]>
>
> Hi


> I saw your posts on the vim_use maillist:
> http://www.mail-archive.com/[email protected]/msg11496.html

 I'm not a member of that list hence the mail.

---------------------------------------

Considering vector<int> vi_without_std;

(Without std::)


> You need to add this line to your .vimrc:

let OmniCpp_DefaultNamespaces=["std"]


> The list can be longer:

let OmniCpp_DefaultNamespaces=["std","Gst","Gtk"]

---------------------------------------

Considering Glib::RefPtr<T>

Sadly I can't get this one to work. If you have solved this, I'd be very
> happy to receive a solution.


> Thanks and sorry for bother.

Greetings, Rob


in my case I don't really have to do it, e.g. include Glib
into OmniCpp_DefaultNamespaces, it works well without, but still
unfortunately it doesn't complete the names for the template class.

Simple example with Clutter:

Glib::RefPtr<Clutter::Actor> actor;
actor->
       cast_const(   p + Glib::RefPtr
       cast_dynamic( p + Glib::RefPtr
       cast_static(  p + Glib::RefPtr
       clear{        p + Glib::RefPtr
       reset{        p + Glib::RefPtr
       ...

So it does the completion for Glib namespace, but doesn't include Clutter
namespace. According to
definition<http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1RefPtr.html#a62cd21eed81024435a6ec778e991365c>from
it should work:

T_CppObject* operator-> () const

the pointer returned is of the template class, in my case it's a pointer to
Clutter::Actor. Perhaps omnicppcomplete is not aware of operator
overloading. If somebody can enlighten about the topic, please do :)

--
Aarto

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to