Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to print any free or member class pointer #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,5 @@ script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCXX_STD=$CXX_STD ..
- make testall
- make testall VERBOSE=1

5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
)

set(CMAKE_VERBOSE_MAKEFILE ON)
set(CXX_STD "c++11" CACHE STRING "Version of C++ standard in use")

# This project is infrastructure. Warnings from common warning levels should
# be errors on all compilers, unless explicitly silenced.
if(NOT WIN32)
set(CMAKE_CXX_FLAGS "-Wall -Werror -std=${CXX_STD}" CACHE STRING "Flags used by the compiler during all build types.")
set(CMAKE_CXX_FLAGS "-Wall -Werror -g -ggdb -std=${CXX_STD}" CACHE STRING "Flags used by the compiler during all build types.")
endif()

project(tinyformat)
Expand All @@ -24,7 +25,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
if(WIN32)
# Treat warnings as errors. Would set this above, but need the default
# flags too, and `project()` behaves is differently on different systems.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /WX")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /WX /Z7")
endif()

add_executable(tinyformat_test tinyformat_test.cpp)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Should work with recent versions of both gcc and clang. (To compile with
# clang use "make CXX=clang++".)

CXXFLAGS?=-Wall -Werror
CXXFLAGS?=-Wall -Werror -g -ggdb
CXX11FLAGS?=-std=c++11

test: tinyformat_test_cxx98 tinyformat_test_cxx11
Expand Down
Loading