0
클래스의 __forceinline 또는 인라인을 사용할 때 헤더 파일의 정의를 MSVC에 포함시켜야합니까? 다른 컴파일러를 통해 다양한 의견이 들렸다.__forceinline 및 인라인 사용
예 1
//some_class.hpp
class some_class
{
public:
__forceinline void some_function();
inline void other_function();
};
//some_class.cpp
void some_class::some_function() { }
void some_class::other_function() { }
예 2
MSVC에서//some_class.hpp
class some_class
{
public:
__forceinline void some_function() { }
inline void other_function() { }
};