Skip to content

Commit

Permalink
2 fix in checkChrono_toStream.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
panchaBhuta committed Sep 19, 2024
1 parent c7d5bd9 commit 114b5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/checkChrono_toStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace datelib = date;
#endif

std::string FromYMD(const datelib::year_month_day& pYmd, std::string_view fmt)
std::string FromYMD(const datelib::year_month_day& pYmd, std::string::value_type* fmt)
{
std::ostringstream oss;

Expand All @@ -39,6 +39,6 @@ int main()
{
std::string dateExp("2016-12-11");
datelib::year_month_day ymd = datelib::year(2016)/12/11;
std::string dateCon = FromYMD(ymd, "%F");
std::string dateCon = FromYMD(ymd, const_cast<char*> ("%F"));
assert(dateExp == dateCon);
}

0 comments on commit 114b5f5

Please sign in to comment.