Skip to content

Commit

Permalink
Merge pull request #45 from e-kwsm/boolalpha
Browse files Browse the repository at this point in the history
Improve display of bools
  • Loading branch information
sbeyer authored Dec 26, 2019
2 parents 7094753 + a17f53e commit 79400c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push]
on: [push, pull_request]

jobs:
linux-build-test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test coding style

on: [push]
on: [push, pull_request]

jobs:
build:
Expand Down
9 changes: 9 additions & 0 deletions include/snowhouse/stringize.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ namespace snowhouse
}
};

template<>
struct DefaultStringizer<bool, true>
{
static std::string ToString(bool value)
{
return value ? "true" : "false";
}
};

template<typename T>
struct DefaultStringizer<T, false>
{
Expand Down

0 comments on commit 79400c8

Please sign in to comment.