As early as 1997, before C++ was fully standardized, Brian Parker proposed a portable solution based on the sizeof operator.
早在C++还未完全标准化的1997年，布莱恩·帕克（Brian Parker）就基于sizeof操作符，提出了一种可移植的解决方案。