title: How to deal with global-constructor warning in clang?
body: <p>Clang warns (when using <code>-Weverything</code> or <code>Wglobal-constructors</code>) about constructors for static objects.</p>
  
  <pre><code>warning: declaration requires a global constructor
        [-Wglobal-constructors]
  A A::my_A; // triggers said warning
       ^~~~
  </code></pre>
  
  <p>Why is this relevant and how should one deal with this warning?</p>
  
  <p>Simple example code:</p>
  
  <pre><code>class A {
    // ...
    static A my_A;
    A();
  };
  
  A A::my_A; // triggers said warning
  </code></pre>