Is constexpr-based computation Turing complete?

后端 未结 3 1830
温柔的废话
温柔的废话 2020-12-24 01:19

We know that C++ template metaprogramming is Turing complete, but preprocessor metaprogramming is not.

C++11 gives us a new form of metaprogramming: computation of c

3条回答
  •  天命终不由人
    2020-12-24 01:44

    Have a look at these. I compiled the examples and they work in GCC 4.6: Compile-time computations, Parsing strings at compile-time - Part I, Parsing strings at compile-time - Part II

提交回复
热议问题