#include <iostream>

template<typename T>
T f()
{
  static double staticLocalVariable = 100.0;
  struct local
  {
      static double f() { return staticLocalVariable=10; }
  };
  return local::f();
}

int main() {
        std::cout << f<double>() << std::endl;
}