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 

I want to modify STL to suite my requirement

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sun Aug 27, 2006 7:51 pm    Post subject: I want to modify STL to suite my requirement Reply with quote



I want to modify STL to suite my requirement, So I download sgi STL ,
Now I am reading one file of them "concept_checks.h", I don't how it
can check the concept and report error when compile,
such as follow semantics,I need some anotate.

#define __STL_REQUIRES(__type_var, __concept) \
do { \
void (*__x)( __type_var ) = __concept##_concept_specification<
__type_var >\
::__concept##_requirement_violation; __x = __x; } while (0)


#define __STL_GENERATOR_CHECK(__func, __ret) \
do { \
__ret (*__x)( __func&) = \
_STL_GENERATOR_ERROR< \
__func, __ret>::__generator_requirement_violation; \
__x = __x; } while (0)


#define __STL_CLASS_REQUIRES(__type_var, __concept) \
typedef void (* __func##__type_var##__concept)( __type_var ); \
template <__func##__type_var##__concept _Tp1> \
struct __dummy_struct_##__type_var##__concept { }; \
static __dummy_struct_##__type_var##__concept< \
__concept##_concept_specification< \
__type_var>::__concept##_requirement_violation> \
__dummy_ptr_##__type_var##__concept


I need some help to anotate these sentence, complete file is follow ,it

can be referenced.


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
alex
Guest





PostPosted: Thu Sep 07, 2006 11:30 pm    Post subject: Re: I want to modify STL to suite my requirement Reply with quote



zhongling (AT) webmail (DOT) hzau.edu.cn wrote:
Quote:
I want to modify STL to suite my requirement, So I download sgi STL ,

Modifying STL files cannot be considered a good practice. There should
be other ways to solve your problem.

If you will be so kind to describe your problem before the point you
have decided to modify STL, there might be one who will see how to
solve it without modifing STL at all.

Or, at least, what is the exact reqiurement STL does not fit for you?


Thanks.
Alex


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) 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.