Skip to content

Commit

Permalink
Two more tweaks.
Browse files Browse the repository at this point in the history
Constexpr and missing concept.
  • Loading branch information
wilx committed Dec 30, 2023
1 parent cba7a7c commit 1edc6e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/log4cplus/helpers/stringhelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ namespace log4cplus {
};


template <typename intType, typename charType>
template <std::integral intType, typename charType>
struct ConvertIntegerToStringHelper<intType, charType, false>
{
static inline
Expand Down
8 changes: 4 additions & 4 deletions src/property.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ substVars (tstring & dest, const tstring & val,
helpers::Properties const & props, helpers::LogLog& loglog,
unsigned flags)
{
static tchar const DELIM_START[] = LOG4CPLUS_TEXT("${");
static tchar const DELIM_STOP[] = LOG4CPLUS_TEXT("}");
static std::size_t const DELIM_START_LEN = 2;
static std::size_t const DELIM_STOP_LEN = 1;
tchar constexpr DELIM_START[] = LOG4CPLUS_TEXT("${");
tchar constexpr DELIM_STOP[] = LOG4CPLUS_TEXT("}");
std::size_t constexpr DELIM_START_LEN = 2;
std::size_t constexpr DELIM_STOP_LEN = 1;

tstring::size_type i = 0;
tstring::size_type var_start, var_end;
Expand Down

0 comments on commit 1edc6e3

Please sign in to comment.