|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to convert a string to uppercase letter. Here goes an example.
Code:
std::string sample = "sample testing"; std::transform(sample.begin(), sample.end(), sample.begin(), toupper); This example works in MFC but does not work in BCB5. In BCB5, it complains 'could not find a match for std::transform<inputIterator1, InputIterator2, OutputIterator, BinaryOperation>(char *, char*, char*, charT(*)(charT, const locale &))' Is there anyway to make it work in BCB5? Thanks. |
|
#2
|
||||
|
||||
|
FYI - Just to let you know, your code works in BCB6. I don't have BCB5 so I can't tell you what the problem is there.
|
|
#3
|
|||
|
|||
|
Yah, I know it may work in some other Borland compilers but not in BCB5. I've figured it out.
Thanks. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > transform algorithm in MFC and BCB5 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|