C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Defect Report: Standard library templates and incomplete typ

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards
View previous topic :: View next topic  
Author Message
Nicola Musatti
Guest





PostPosted: Mon Nov 13, 2006 3:44 pm    Post subject: Defect Report: Standard library templates and incomplete typ Reply with quote



In the latest available draft standard (N2134) § 17.4.3.6
[res.on.functions] states:

1 In certain cases (replacement functions, handler functions,
operations on
types used to instantiate standard library template components), the
C++
Standard Library depends on components supplied by a C++ program. If
these components do not meet their requirements, the Standard places
no
requirements on the implementation.
2 In particular, the effects are undefined in the following cases:

[...]

- if an incomplete type (3.9) is used as a template argument when
instantiating a template component.

This is contradicted by § 20.6.6.2/2 [util.smartptr.shared] which
states:

[...]

The template parameter T of shared_ptr may be an incomplete type.

The last bullet of § 17.4.3.6/2 should be modified to allow for
exceptions, as in:

- if an incomplete type (3.9) is used as a template argument when
instantiating a template component, unless explicitly specified
otherwise.

Cheers,
Nicola Musatti


---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.