项目作者: napiknikkpek

项目描述 :
Simple c++17 constexpr compile time formatting
高级语言: C++
项目地址: git://github.com/napiknikkpek/format.git
创建时间: 2017-09-15T23:18:12Z
项目社区:https://github.com/napiknikkpek/format

开源协议:

下载


Travis status" class="reference-link">Format Travis status

Simple c++17 compile time formatting implemented with constexpr.\
Use python format syntax.

Usage:

  1. #include <format.hpp>
  2. #include <boost/hana/string.hpp>
  3. using namespace boost::hana::literals;
  4. std::cout << format("string: {1}, number: {0}"_s, 1, "asdf");
  1. #include <format.hpp>
  2. std::cout << FORMAT("string: {1}, number: {0}")(1, "asdf");