Ok, well I just ran a test (MSVC 2005 release build):
#include <iostream>
#include <cstring>
#include <cctype>
#include <windows.h>
int main()
{
Type: Posts; User: Hunter2
Ok, well I just ran a test (MSVC 2005 release build):
#include <iostream>
#include <cstring>
#include <cctype>
#include <windows.h>
int main()
{
Indeed, but it's a possibility that the compiler must take into account.
Spoilsport. :o
Why not? Just change the parameter type to char* and return type to int, and you're all good - no ambiguity. Besides, the library functions are supposed to be in the std:: namespace.
#include...
>>I would expect your better compilers to know this and be able to optimize it.
Possibly, but it's hardly a 'good' assumption to make :) I really don't know how smart compilers are these days, but...