Is it possible to calculate function length at compile time in C++?

前端 未结 0 1800
有刺的猬
有刺的猬 2021-01-30 02:24

I have this piece of code:

constexpr static VOID fStart()
{
    auto a = 3;
    a++;
}

__declspec(naked) 
constexpr static VOID fEnd() {};

static constexpr auto         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题