mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Minor changes to follow C++ Format's coding conventions
This commit is contained in:
parent
33f85efb55
commit
8bd1953094
@ -21,7 +21,7 @@ script:
|
|||||||
- CTEST_OUTPUT_ON_FAILURE=1 make test
|
- CTEST_OUTPUT_ON_FAILURE=1 make test
|
||||||
- cd .. && rm -rf build/
|
- cd .. && rm -rf build/
|
||||||
# Building with biicode
|
# Building with biicode
|
||||||
- ./biicode/support/travis-build.sh
|
- biicode/support/travis-build.sh
|
||||||
|
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
|
@ -64,7 +64,7 @@ endif ()
|
|||||||
if (BIICODE)
|
if (BIICODE)
|
||||||
include(biicode/cmake/biicode.cmake)
|
include(biicode/cmake/biicode.cmake)
|
||||||
return()
|
return()
|
||||||
endif(BIICODE)
|
endif ()
|
||||||
|
|
||||||
add_library(format ${FMT_SOURCES})
|
add_library(format ${FMT_SOURCES})
|
||||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
@ -14,5 +14,4 @@ int main(int argc, char *argv[]){
|
|||||||
std::string s = fmt::format("The date is {}", Date(2012, 12, 9));
|
std::string s = fmt::format("The date is {}", Date(2012, 12, 9));
|
||||||
fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax
|
fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax
|
||||||
fmt::printf("\n%s", s); // uses printf format string syntax
|
fmt::printf("\n%s", s); // uses printf format string syntax
|
||||||
return 0;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user