IDS peak genericC++  v1.4.0
peak_buffer_converter.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 
13 
15 
16 
17 namespace peak
18 {
19 
41 template <class OutType>
42 OutType BufferTo(const std::shared_ptr<core::Buffer>& buffer)
43 {
44  (void)buffer;
45  // static_assert that's always false, so we get a compiler error when using a not-implemented specialization
46  static_assert(sizeof(OutType) == 0,
47  "BufferTo<>() not implemented for this type. Implement a specialization for your own type or include one from "
48  "the 'converters' folder.");
49 }
50 
51 } /* namespace peak */
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition: peak_dynamic_loader.h:32
OutType BufferTo(const std::shared_ptr< core::Buffer > &buffer)
Converts a core::Buffer into a different type.
Definition: peak_buffer_converter.hpp:42