Skip to content

Commit a14940e

Browse files
committed
Add export to << friend declaration for MSVC
1 parent 8c5ee5e commit a14940e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cpptrace/basic.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ namespace cpptrace {
166166

167167
std::string to_string() const;
168168
std::string to_string(bool color) const;
169-
friend std::ostream& operator<<(std::ostream& stream, const stacktrace_frame& frame);
169+
friend CPPTRACE_EXPORT std::ostream& operator<<(std::ostream& stream, const stacktrace_frame& frame);
170170
};
171171

172172
struct CPPTRACE_EXPORT stacktrace {
@@ -182,7 +182,7 @@ namespace cpptrace {
182182
void clear();
183183
bool empty() const noexcept;
184184
std::string to_string(bool color = false) const;
185-
friend std::ostream& operator<<(std::ostream& stream, const stacktrace& trace);
185+
friend CPPTRACE_EXPORT std::ostream& operator<<(std::ostream& stream, const stacktrace& trace);
186186

187187
using iterator = std::vector<stacktrace_frame>::iterator;
188188
using const_iterator = std::vector<stacktrace_frame>::const_iterator;

0 commit comments

Comments
 (0)