本文介绍了有没有办法在compiletime打印一个constexpr字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做以下(仅下面的代码的相关部分):

I'm trying to do the following (only relevant parts of code below):

 c> 或,取决于 ResultType  / code>。

In your specialization _check_concept::struct run<true_t> I presume thattrue_t is not an alias or equivalent of std::true_type, but ratherjust a place-holder for some ResultType that is a container type. Asthe test program shows, no such specialization is now necessary, becauseIsContainerCheck<ResultType>() will static_assert, or not, dependingon ResultType, in the unspecialized run<ResultType>::apply().

这篇关于有没有办法在compiletime打印一个constexpr字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 10:06