This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 30th, 2012  |  syntax: None  |  size: 0.32 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #ifndef _CFSTRING_
  2. #define _CFSTRING_
  3. #pragma warning(disable : 4996)
  4. #include <string>
  5. class CFString {
  6. public:
  7.         CFString();
  8.         CFString(const char* str);
  9.         CFString(const CFString& str);
  10.         ~CFString();
  11.         operator const char*();
  12.         operator const char*() const;
  13. private:
  14.         static char* strempty;
  15.         char* strdata;
  16. };
  17.  
  18. #endif
clone this paste RAW Paste Data