Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
virtual operator +
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Hunk, post: 3052482"] You are right... learnt it the hard way... you say there is some way in letter/envelop idiom? For now i have taken the decision to restrict the user to use only +=. I know this is a very restrictive way , but for now i know of no other way to tackle the issue Thats a good question. I would prefer giving a compilation error for this. This is for the simple reason that Hash_string data members are different than Char_string. So would'nt know which to return The difference in Hash_string and Char_string is that the Hash_string class has a hash value computed and stored as a data member. So comparisons are faster as they would be comparing integers rather than characters. The generic base_string is required as for the interface class a generic version is required. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
virtual operator +
Top