Add spaces between nested template closing brackets to support pre-C++11 compilers