Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…y-cpp into maxgolov/win32_fix
  • Loading branch information
maxgolov committed Jun 11, 2021
2 parents f7137bb + 865b9e7 commit fbb27b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/include/opentelemetry/std/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
OPENTELEMETRY_BEGIN_NAMESPACE
namespace nostd
{
using gsl::dynamic_extent;
template <class ElementType, std::size_t Extent = gsl::dynamic_extent>
using span = gsl::span<ElementType, Extent>;
}
} // namespace nostd
OPENTELEMETRY_END_NAMESPACE
# define HAVE_SPAN
# else
Expand Down
2 changes: 2 additions & 0 deletions sdk/test/common/circular_buffer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ TEST(CircularBufferTest, Simulation)
consumer.join();
std::sort(producer_numbers.begin(), producer_numbers.end());
std::sort(consumer_numbers.begin(), consumer_numbers.end());

EXPECT_EQ(producer_numbers.size(), consumer_numbers.size());
EXPECT_EQ(producer_numbers, consumer_numbers);
}
}

0 comments on commit fbb27b3

Please sign in to comment.