![]() |
От: | placement_new | |
Дата: | 01.06.15 06:13 | ||
Оценка: |
// file.h
#pragma once
template<typename T>
struct S
{
static const int s;
};
template<> const int S<int>::s;
// file.cpp
#include "file.h"
template<> const int S<int>::s = 42;
'S<int>::s' : const object must be initialized if not extern