Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] How to fixed the error of "request for member ‘*’ in ‘*’, which is of non-class type ‘const char [11]’ "
Chronological Thread
- From: 魏华祎 <>
- To:
- Subject: Re: [cgal-discuss] How to fixed the error of "request for member ‘*’ in ‘*’, which is of non-class type ‘const char [11]’ "
- Date: Wed, 20 Feb 2013 14:11:50 +0800
Hi, Laurent,
Thanks for your reply. Yes, you are right. I have changed the codes, so which can work well now.
template<class GT >
Geomview_stream&
operator<<( Geomview_stream &gv, const Structure_quadrangulation_2<GT> & quad)
{
bool ascii_bak = gv.get_ascii_mode();
bool raw_bak = gv.set_raw(true);
show_quad(gv, quad);
gv.set_raw(raw_bak);
gv.set_ascii_mode(ascii_bak);
return gv;
}
Best
Huayi
2013/2/19 Laurent Rineau (CGAL/GeometryFactory) <>
> template<class SQuad >That overload of operator<< matches everything for its second argument. That
> Geomview_stream&
> operator<<( Geomview_stream &gv, const SQuad & quad)
overrides even the operator<<(Geomview_stream, const char*), and that causes
the error message.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] How to fixed the error of "request for member ‘*’ in ‘*’, which is of non-class type ‘const char [11]’ ", 魏华祎, 02/19/2013
- Re: [cgal-discuss] How to fixed the error of "request for member ‘*’ in ‘*’, which is of non-class type ‘const char [11]’ ", Laurent Rineau (CGAL/GeometryFactory), 02/19/2013
- Re: [cgal-discuss] How to fixed the error of "request for member ‘*’ in ‘*’, which is of non-class type ‘const char [11]’ ", 魏华祎, 02/20/2013
- Re: [cgal-discuss] How to fixed the error of "request for member ‘*’ in ‘*’, which is of non-class type ‘const char [11]’ ", Laurent Rineau (CGAL/GeometryFactory), 02/19/2013
Archive powered by MHonArc 2.6.18.