Skip to content

Commit

Permalink
Add support for string const arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
MakeDUMP authored Oct 15, 2020
1 parent 8bb6798 commit c5e0ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class logger {
template <typename T>
using enable_is_float = std::enable_if_t<std::is_floating_point<T>::value, bool>;
template <typename T>
using enable_is_string = std::enable_if_t<std::is_same<T, string>::value || std::is_same<T, string&>::value, bool>;
using enable_is_string = std::enable_if_t<std::is_same<T, string const>::value || std::is_same<T, string>::value || std::is_same<T, string const&>::value || std::is_same<T, string&>::value, bool>;
template <typename T>
using enable_is_char_string = std::enable_if_t<std::is_same<T, char const*>::value || std::is_same<T, char*>::value, bool>;
template <typename T>
Expand Down

0 comments on commit c5e0ee7

Please sign in to comment.