diff options
author | Tom Tsou <tom.tsou@ettus.com> | 2017-07-06 17:25:55 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-07-18 12:45:56 -0700 |
commit | f21874e68a413ad8088bef69e3e8c1ef9c352eca (patch) | |
tree | 28c10a22cdbbab036e59b816fff9dc682c767caa /host/tests/stream_sig_test.cpp | |
parent | 5501823223ae7648413d3747badf9553bbd71578 (diff) | |
download | uhd-f21874e68a413ad8088bef69e3e8c1ef9c352eca.tar.gz uhd-f21874e68a413ad8088bef69e3e8c1ef9c352eca.tar.bz2 uhd-f21874e68a413ad8088bef69e3e8c1ef9c352eca.zip |
convert: Add sc12-sc16 converters
Create missing sc12-sc16 and sc16-sc12 type converters. To avoid
replicating the full sc12 converter class object, overload the
converter calls with C++11 std::enable_if metafunctions. When
used with std::is_floating and std::is_integral templates, this
allow a single template interface with compile time function
selection and static type checking.
Note the below std::enable_if interface is confusing, but quite
effective in this case.
typename enable_if<is_floating_point<type>::value>::type* = NULL
Fixes: #966
Related: #967, #1721
Diffstat (limited to 'host/tests/stream_sig_test.cpp')
0 files changed, 0 insertions, 0 deletions