Boost logo

Boost :

Subject: Re: [boost] [Polygon] What does this error mean?
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2009-09-03 09:15:18


Phil Endecott wrote:
> Simonson, Lucanus J wrot:
> > The error the above should fix is:
> >
> > /usr/local/src/gtl/boost/polygon/rectangle_concept.hpp:192:
> error: no
> > matching function for call to
> > 'set(boost::polygon::rectangle_data<int>&,
> > boost::polygon::orientation_2d_enum, std::pair<int, int>)'
> >
> > Is that error still present?
>
> Ha, actually I hadn't noticed that particular error amongst the
> kilobytes of other spewage. It has now gone. What I am
> still getting
> is the "class std::set is not a function" stuff.
>
> I've also added the interval_mutable_traits specialisation
> that Thomas
> suggested without any improvement.
>
> I would be interested to hear if anyone thinks that concept checking
> could make these particular errors any more readable.

Concept checking would help immensely -- and was what I thought of immediately upon seeing Lucanus' reply to your initial query -- because it would have indicated that std::pair<int,int> was not an interval type. The documentation would then be able to direct you to the traits specializations needed to satisfy the failed concept. That is so much more helpful than obscure diagnostics from deep within the library.

_____
Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP http://www.sig.com

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk