From d441ca9c3afac4811fc1cf7445d2327ba528e7bd Mon Sep 17 00:00:00 2001 From: Manuel Gunther <siebenkopf@googlemail.com> Date: Tue, 13 Sep 2016 18:33:15 -0600 Subject: [PATCH] Added test case using File::cast that does not compile anymore --- bob/io/base/test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bob/io/base/test.cpp b/bob/io/base/test.cpp index 2b0ff8a..71cefaf 100644 --- a/bob/io/base/test.cpp +++ b/bob/io/base/test.cpp @@ -40,6 +40,10 @@ BOB_TRY auto input = h5file(hdf5.string().c_str(), 'r'); blitz::Array<uint8_t,1> read_data = input->read<uint8_t,1>(0); + + // Does not compile at the moment + blitz::Array<uint16_t,1> read_data_2 = input->cast<uint16_t,1>(0); + input.reset(); if (blitz::any(test_data - read_data)) -- GitLab