Skip to content

Commit 7ec4b0d

Browse files
committed
feat(LogIntermediate): Add std::string implicit conversion
1 parent ee10ff1 commit 7ec4b0d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/LogIntermediate.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ namespace al
1616

1717
}
1818

19+
LogIntermediate::LogIntermediate(const std::string &formatString, const std::source_location location) :
20+
m_FormatString(formatString),
21+
m_Location(location)
22+
{
23+
24+
}
25+
1926
const std::string_view LogIntermediate::FormatString() const
2027
{
2128
return m_FormatString;

src/LogIntermediate.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace al
99
public:
1010
LogIntermediate(const std::string_view formatString, const std::source_location location = std::source_location::current());
1111
LogIntermediate(const char* formatString, const std::source_location location = std::source_location::current());
12+
LogIntermediate(const std::string& formatString, const std::source_location location = std::source_location::current());
1213
virtual ~LogIntermediate() = default;
1314

1415
const std::string_view FormatString() const;

0 commit comments

Comments
 (0)