Search:

Type: Posts; User: Hunter2

Search: Search took 0.04 seconds.

  1. Replies
    24
    Views
    30,055

    Ok, well I just ran a test (MSVC 2005 release...

    Ok, well I just ran a test (MSVC 2005 release build):


    #include <iostream>
    #include <cstring>
    #include <cctype>
    #include <windows.h>

    int main()
    {
  2. Replies
    24
    Views
    30,055

    Indeed, but it's a possibility that the compiler...

    Indeed, but it's a possibility that the compiler must take into account.
  3. Replies
    24
    Views
    30,055

    Spoilsport. :o

    Spoilsport. :o
  4. Replies
    24
    Views
    30,055

    Why not? Just change the parameter type to char*...

    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...
  5. Replies
    24
    Views
    30,055

    >>I would expect your better compilers to know...

    >>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...
Results 1 to 5 of 5