Yes, I did. because my goal is to get
const T& get_name()const
method. I need to return a reference.


-Pavlo Solntsev
---------------------------------------------------------------------------------------------

*Please avoid sending me Word or PowerPoint attachments.See
http://www.gnu.org/philosophy/no-word-attachments.html
<http://www.gnu.org/philosophy/no-word-attachments.html>*

On Fri, Feb 23, 2018 at 3:40 AM, Daniel Boles <dboles....@gmail.com> wrote:

> On 22 February 2018 at 19:56, Pavlo Solntsev <pavlo.solnt...@gmail.com>
> wrote:
>
>> Thanks for comments.  My macroses:
>>
>>   _MEMBER_GET(name,name,const Glib::ustring&,const gchar*)
>>   _MEMBER_SET(name,name,Glib::ustring,gchar*)
>>
>> the generated code :
>> const Glib::ustring& DsnInfo::get_name() const
>> {
>>   return Glib::convert_const_gchar_ptr_to_ustring(gobj()->name); // This
>> is my concern. it looks like we return ref for temp object
>> }
>>
>
>
> Of course it returns that. You just told it to! Look at the 2nd parameter
> of your _MEMBER_GET() declaration.
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to