Boost logo

Boost Users :

Subject: Re: [Boost-users] boost exception tutorial
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2009-04-01 11:04:46

On Tue, Mar 31, 2009 at 5:25 PM, Emil Dotchevski
<emildotchevski_at_[hidden]> wrote:
> I added a Motivation page and a few other tweaks in the documentation.
> It'll be out with the 1.39 release but can be viewed right away
> through this link:

Thanks for that Emil, it's helpful to me too.

Something that confuses me a little in the exception documentation is the
struct tag used when typedef'ing error_info<>. It's unclear if these
tags are coming
from boost exception headers, std headers (like the in the case below) or if
these must be explicitly defined by the user, or if the simple fact
that of using
them in the typedef is enough to declare them.

typedef boost::error_info<struct tag_std_range_min,size_t> std_range_min;

So the above is equivalent to the below?

struct tag_std_range_min;
typedef boost::error_info<tag_std_range_min,size_t> std_range_min;

It may not be obvious to everyone ;-) Wasn't to me at first. Thanks, --DD

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at