title: singleton and new operator - thread safety
body: <p>I know that a Scott Meyers Singleton is thread-safe for C++11 and above. Is the following code also thread-safe (for C++11 and above)?</p>
  <pre><code>class T
  {
      static T* obj;
  public:
      T&amp; GetInstance()
      {
          if (!obj)
          {
              obj = new T();
          }
          return *obj;
      }
  };
  T* T::obj=nullptr;
  </code></pre>