bat*_*mas 5 c++ rust
C++ 有像 Rust 那样的宏include_str!吗?类似于include!或include_bytes也符合我的要求的宏。
include_str!
include!
include_bytes
Dar*_*uuk 6
没有标准的方法可以做到这一点。有提案P1040R6用于std::embed.
std::embed
如果您现在想对此进行试验,请查看https://github.com/ThePhD/embed(由上述提案的作者提供)。你需要修补你的编译器,所以它看起来不太便携。
归档时间:
5 年,11 月 前
查看次数:
244 次
最近记录: