Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by StonedCoder

  1. StonedCoder

    overloading new[] as a member function

    I guess im just being lazy but rather than put every use of new[] in a try/catch block i thought that i would overload the operator to do it for me. This is just an exercise in getting it right.I have never before had cause to overload new[] and i know i could have used set_new_handler()...
  2. StonedCoder

    overloading new[] as a member function

    have already tried that and memory is included anyway.. have tried making it static but it is implicitly staic anyway. any other ideas as to why global new has gone missing. Item 9 in scott meyers effective c++ mentions if you use a form of the operator with a different number of arguements...
  3. StonedCoder

    overloading new[] as a member function

    no i disagree.... i am overloading new as a member function passing on the call to global new[] i have seen similar code in books and examples and it compiles on gnu g++ or whatever it is but wont compile on MSVC. i think this problem is msvc specific. doesn't cause infinite recursion on...
  4. StonedCoder

    clean up console

    void clrscr() { COORD coordScreen = { 0, 0 }; DWORD cCharsWritten; CONSOLE_SCREEN_BUFFER_INFO csbi; DWORD dwConSize; HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); GetConsoleScreenBufferInfo(hConsole, &csbi); dwConSize = csbi.dwSize.X * csbi.dwSize.Y...
  5. StonedCoder

    overloading new[] as a member function

    im trying to overload new[] for my own string class Cstr. My code compiles on other compilers but not on msvc6. anyone know how to get this working? the error i get is new[] is not a member of global namespace. I have the usual headers included and a using namespace std statement. this is the...

Part and Inventory Search

Back
Top