Skip to content

Commit

Permalink
explicit template instantiation definition
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Nov 21, 2024
1 parent 9ffe4ef commit b192261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/aws/crt/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ struct aws_byte_buf;
struct aws_byte_cursor;
struct aws_socket_options;

extern template class AWS_CRT_CPP_API std::basic_string<char, std::char_traits<char>, Aws::Crt::StlAllocator<char>>;

namespace Aws
{
namespace Crt
Expand Down
2 changes: 2 additions & 0 deletions source/Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#include <aws/common/encoding.h>

template class std::basic_string<char, std::char_traits<char>, Aws::Crt::StlAllocator<char>>;

namespace Aws
{
namespace Crt
Expand Down

0 comments on commit b192261

Please sign in to comment.