This fixes a compile error with clang:
pv/data/segment.cpp.o: In function `unsigned long const& std::min<unsigned long>(unsigned long const&, unsigned long const&)':
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/bits/stl_algobase.h:200: undefined reference to `pv::data::Segment::MaxChunkSize'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
namespace pv {
namespace data {
+const uint64_t Segment::MaxChunkSize = 10*1024*1024; /* 10MiB */
+
Segment::Segment(uint64_t samplerate, unsigned int unit_size) :
sample_count_(0),
start_time_(0),
class Segment
{
private:
- static const uint64_t MaxChunkSize = 10*1024*1024; /* 10MiB */
+ static const uint64_t MaxChunkSize;
public:
Segment(uint64_t samplerate, unsigned int unit_size);