Tag Archives: C++

C++ references

Assigning reference return value to a variable When assigning a reference return value to a variable, a copy is made. Here is an example: class References { private: std::string name; public: References(const std::string& name) : name(name) { }; virtual ~References() … Continue reading

Posted in C++ | Tagged , | Leave a comment

Getting the current system time in milliseconds with C++

After doing quite a bit of C++ recently, I thought I would post my method for getting the current system time in milliseconds in C++ for both Mac OS X and Windows. The Mac version might translate to other Unix … Continue reading

Posted in C++, Linux, Microsoft, OS X | Tagged , , , , , , | 4 Comments

Writing a marker interface in C++

Just figured this out and it caused me about 3 hours of pain, so I figured I’d post it in case I need to do it again. class Base { public: virtual ~Base() {}; }; class Derived : public Base … Continue reading

Posted in C++ | Tagged , , , | Leave a comment

Visual Studio sucks, NetBeans is coming along, IJ is slipping

I’ve been working on a decent sized C++ project recently and since the application will be used on a Windows server, I wanted to stay close to that platform. I fired up the latest Visual Studio 2008 version hot off … Continue reading

Posted in C++, IntelliJ, Java, Visual Studio | Tagged , , , , | 3 Comments