Gtkmm-forge Digest, Vol 8, Issue 10



Send Gtkmm-forge mailing list submissions to
	gtkmm-forge lists sourceforge net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/gtkmm-forge
or, via email, send a message with subject or body 'help' to
	gtkmm-forge-request lists sourceforge net

You can reach the person managing the list at
	gtkmm-forge-owner lists sourceforge net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gtkmm-forge digest..."


gtkmm-forge is the mailing list that receives gtkmm bug reports from bugzilla.  A daily digest is sent to gtkmm-main, to encourage people to help fixing the bugs. Do not try to unsubscribe gtkmm-forge from gtkmm-list.


Today's Topics:

   1. [Bug 395572] overloading ambiguity in	printoptions.cc with
      Sun Workshop 11 CC (gtkmm (bugzilla.gnome.org))
   2. [Bug 395572] overloading ambiguity in	printoptions.cc with
      Sun Workshop 11 CC (gtkmm (bugzilla.gnome.org))


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

Message: 1
Date: Fri, 12 Jan 2007 17:36:10 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 395572] overloading ambiguity in
	printoptions.cc with Sun Workshop 11 CC
To: gtkmm-forge lists sourceforge net
Message-ID: <20070112173610 70E336C415B box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=395572

  gtkmm | build | Ver: 2.10.x





------- Comment #6 from Tim Mooney  2007-01-12 17:34 UTC -------
Thanks for making the patch Marko.

Unfortunately, still no joy:

"printoperation.cc", line 91: Error: Overloading ambiguity between
"Glib::unwrap<const Gtk::PageSetup>(const Glib::RefPtr<const Gtk::PageSetup>&)"
and "Glib::unwrap<const Gtk::PageSetup>(const Glib::RefPtr<const
Gtk::PageSetup>&)".
"printoperation.cc", line 94: Error: Overloading ambiguity between
"Glib::unwrap<const Gtk::PrintSettings>(const Glib::RefPtr<const
Gtk::PrintSettings>&)" and "Glib::unwrap<const Gtk::PrintSettings>(const
Glib::RefPtr<const Gtk::PrintSettings>&)".
"printoperation.cc", line 115: Error: Overloading ambiguity between
"Glib::unwrap<const Gtk::PageSetup>(const Glib::RefPtr<const Gtk::PageSetup>&)"
and "Glib::unwrap<const Gtk::PageSetup>(const Glib::RefPtr<const
Gtk::PageSetup>&)".
"printoperation.cc", line 118: Error: Overloading ambiguity between
"Glib::unwrap<const Gtk::PrintSettings>(const Glib::RefPtr<const
Gtk::PrintSettings>&)" and "Glib::unwrap<const Gtk::PrintSettings>(const
Glib::RefPtr<const Gtk::PrintSettings>&)".


I have regenerated printoperation.cc, and it includes Marko's second patch.
Line 91 is the last line I show:


  // Specify the exact type with template specialization, to avoid possible
  // ambiguities between the const and non-const versions of unwrap reported
  // by some compilers:
  const GtkPageSetup* c_page_setup =
    Glib::unwrap<const PageSetup>(page_setup);


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



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

Message: 2
Date: Fri, 12 Jan 2007 20:12:49 +0000 (UTC)
From: "gtkmm (bugzilla.gnome.org)"
	<bugzilla-daemon bugzilla gnome org>
Subject: [gtkmm bugzilla] [Bug 395572] overloading ambiguity in
	printoptions.cc with Sun Workshop 11 CC
To: gtkmm-forge lists sourceforge net
Message-ID: <20070112201249 2AC0F6C40D2 box gnome org>
Content-Type: text/plain; charset=utf-8

Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=395572

  gtkmm | build | Ver: 2.10.x





------- Comment #7 from Marko Anastasov  2007-01-12 20:11 UTC -------
Created an attachment (id=80136)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=80136&action=view)
third attempt

Ok, try with this one. I kinda don't like it, but maybe it'll solve the
problem. Here, the idea is to do eg:

Glib::RefPtr<PageSetup> page_setup_unconst =
    Glib::RefPtr<PageSetup>::cast_const(page_setup);

and then use that new one with unwrap().


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

_______________________________________________
Gtkmm-forge mailing list
Gtkmm-forge lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/gtkmm-forge


End of Gtkmm-forge Digest, Vol 8, Issue 10
******************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]