Topic: Inconsistencies about <scoped_allocator>
Author: =?ISO-8859-1?Q?Daniel_Kr=FCgler?= <daniel.kruegler@googlemail.com>
Date: Mon, 5 Dec 2011 01:02:24 -0800 (PST)
Raw View
Am 04.12.2011 11:23, schrieb m0shbear:
>
> This question refers to ISO 14882:2011.
> According to [allocator.adapter], there exists a header file
> <scoped_allocator>, which defines a template type
> scoped_allocator_adapter<typename OuterAlloc, typename ...
> InnerAlloc>.
> However, Table 14 in [headers] makes no such mention of this.
> Could I get an explanation on the apparent contradiction?
You are right, this is indeed a miss in Table 14, and it is not
intended. I forwarded a notice to the project editor as of your
posting.
Thanks & Greetings from Bremen,
Daniel Kr gler
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: "Bo Persson" <bop@gmb.dk>
Date: Mon, 5 Dec 2011 01:02:33 -0800 (PST)
Raw View
m0shbear wrote:
> This question refers to ISO 14882:2011.
> According to [allocator.adapter], there exists a header file
> <scoped_allocator>, which defines a template type
> scoped_allocator_adapter<typename OuterAlloc, typename ...
> InnerAlloc>.
> However, Table 14 in [headers] makes no such mention of this.
> Could I get an explanation on the apparent contradiction?
The scoped_allocator_adapter was proposed as an addition to the
<memory> header, where the std::allocator is defined.
It was not until very late in the process that it was moved to its own
header. Apparently it was forgotten to add this new header to Table
14. An oversight.
Bo Persson
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: Pete Becker <pete@versatilecoding.com>
Date: Mon, 5 Dec 2011 01:02:43 -0800 (PST)
Raw View
On 2011-12-04 10:23:12 +0000, m0shbear said:
> This question refers to ISO 14882:2011.
> According to [allocator.adapter], there exists a header file
> <scoped_allocator>, which defines a template type
> scoped_allocator_adapter<typename OuterAlloc, typename ...
> InnerAlloc>.
> However, Table 14 in [headers] makes no such mention of this.
> Could I get an explanation on the apparent contradiction?
The standard requires the header <scoped_allocator>. If leaving it out
of Table 14 is the worst problem you've found, you're not trying very
hard. <g>
--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: m0shbear <andrey.vul@gmail.com>
Date: Fri, 9 Dec 2011 23:53:37 -0800 (PST)
Raw View
On Dec 5, 4:02 am, Pete Becker <p...@versatilecoding.com> wrote:
> On 2011-12-04 10:23:12 +0000, m0shbear said:
>
> > This question refers to ISO 14882:2011.
> > According to [allocator.adapter], there exists a header file
> > <scoped_allocator>, which defines a template type
> > scoped_allocator_adapter<typename OuterAlloc, typename ...
> > InnerAlloc>.
> > However, Table 14 in [headers] makes no such mention of this.
> > Could I get an explanation on the apparent contradiction?
>
> The standard requires the header <scoped_allocator>. If leaving it out
> of Table 14 is the worst problem you've found, you're not trying very
> hard. <g>
>
I was rewriting cpp.vim to do C++11 syntax highlighting. It was the
only significant inconsistency that caught my eye. I also found a good
dozen small typos elsewhere.
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: m0shbear <andrey.vul@gmail.com>
Date: Sun, 4 Dec 2011 02:23:12 -0800 (PST)
Raw View
This question refers to ISO 14882:2011.
According to [allocator.adapter], there exists a header file
<scoped_allocator>, which defines a template type
scoped_allocator_adapter<typename OuterAlloc, typename ...
InnerAlloc>.
However, Table 14 in [headers] makes no such mention of this.
Could I get an explanation on the apparent contradiction?
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]