Skip to content

Commit

Permalink
Remove compile-time checks on FileLoader classes.
Browse files Browse the repository at this point in the history
They don't seem to work everywhere. My guess is that the types isn't
quite complete by the time we use it so some compiles don't like it.
Refs #7263
  • Loading branch information
martyngigg committed Jul 4, 2013
1 parent aa26bb6 commit 84aa596
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Code/Mantid/Framework/API/inc/MantidAPI/RegisterFileLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

#include "MantidAPI/FileLoaderRegistry.h"

#include <boost/static_assert.hpp>
#include <boost/type_traits/is_base_of.hpp>

/**
* DECLARE_FILELOADER_ALGORITHM should be used in place of the standard
* DECLARE_ALGORITHM macro when writing a file loading algorithm that
Expand All @@ -16,9 +13,6 @@
#define DECLARE_FILELOADER_ALGORITHM(classname) \
namespace \
{\
typedef boost::is_base_of<Mantid::API::IFileLoader,classname> base_checker;\
BOOST_STATIC_ASSERT_MSG(base_checker::value,\
#classname" must inherit from Mantid::API::IFileLoader to be used with DECLARE_FILELOADER_ALGORITHM");\
Mantid::Kernel::RegistrationHelper \
reg_loader_##classname((Mantid::API::\
FileLoaderRegistry::Instance().subscribe<classname>(Mantid::API::FileLoaderRegistryImpl::NonHDF), 0));\
Expand All @@ -34,9 +28,6 @@
#define DECLARE_HDF_FILELOADER_ALGORITHM(classname) \
namespace \
{\
typedef boost::is_base_of<Mantid::API::IHDFFileLoader,classname> base_checker;\
BOOST_STATIC_ASSERT_MSG(base_checker::value,\
#classname" must inherit from Mantid::API::IHDFFileLoader to be used with DECLARE_HDF_FILELOADER_ALGORITHM");\
Mantid::Kernel::RegistrationHelper \
reg_hdf_loader_##classname((Mantid::API::\
FileLoaderRegistry::Instance().subscribe<classname>(Mantid::API::FileLoaderRegistryImpl::HDF), 0)); \
Expand Down

0 comments on commit 84aa596

Please sign in to comment.