summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-10-28 09:24:25 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-02-08 11:32:33 +0100
commit27a964cb66f3a78ca27cc5a5befbdd3f405ccee4 (patch)
treebf963e0437cbaf43ad79d77768067e1452f8e960
parent03c3e5b5043cc8cba9aceeb8641d497edd1be7cf (diff)
downloadastra-27a964cb66f3a78ca27cc5a5befbdd3f405ccee4.tar.gz
astra-27a964cb66f3a78ca27cc5a5befbdd3f405ccee4.tar.bz2
astra-27a964cb66f3a78ca27cc5a5befbdd3f405ccee4.tar.xz
astra-27a964cb66f3a78ca27cc5a5befbdd3f405ccee4.zip
Remove unused function
-rw-r--r--include/astra/Globals.h12
-rw-r--r--src/Float32Data3DMemory.cpp1
2 files changed, 1 insertions, 12 deletions
diff --git a/include/astra/Globals.h b/include/astra/Globals.h
index dec978d..44a77b0 100644
--- a/include/astra/Globals.h
+++ b/include/astra/Globals.h
@@ -53,8 +53,6 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>.
#include <iostream>
#include <fstream>
#include <math.h>
-#include <boost/static_assert.hpp>
-#include <boost/throw_exception.hpp>
//----------------------------------------------------------------------------------------
// macro's
@@ -227,16 +225,6 @@ namespace astra {
int m_iSliceIndex;
};
}
-//----------------------------------------------------------------------------------------
-// some toys
-
-// safe reinterpret cast
-template <class To, class From>
-To safe_reinterpret_cast(From from)
-{
- BOOST_STATIC_ASSERT(sizeof(From) <= sizeof(To));
- return reinterpret_cast<To>(from);
-}
//----------------------------------------------------------------------------------------
// functions for testing
diff --git a/src/Float32Data3DMemory.cpp b/src/Float32Data3DMemory.cpp
index 95b1859..8735585 100644
--- a/src/Float32Data3DMemory.cpp
+++ b/src/Float32Data3DMemory.cpp
@@ -27,6 +27,7 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>.
#include "astra/Float32Data3DMemory.h"
#include <iostream>
+#include <cstdlib>
namespace astra {