Get rid of include directives inside namespace blocks (bug #339).

This commit is contained in:
Jitse Niesen
2012-04-15 11:06:28 +01:00
parent 84c93b048e
commit 3c412183b2
280 changed files with 1006 additions and 179 deletions

View File

@@ -80,6 +80,8 @@
#define EIGEN_HAS_MM_MALLOC 0
#endif
namespace Eigen {
namespace internal {
inline void throw_std_bad_alloc()
@@ -504,8 +506,6 @@ template<typename T> struct smart_copy_helper<T,false> {
};
} // end namespace internal
/*****************************************************************************
*** Implementation of runtime stack allocation (falling back to malloc) ***
*****************************************************************************/
@@ -520,8 +520,6 @@ template<typename T> struct smart_copy_helper<T,false> {
#endif
#endif
namespace internal {
// This helper class construct the allocated memory, and takes care of destructing and freeing the handled data
// at destruction time. In practice this helper class is mainly useful to avoid memory leak in case of exceptions.
template<typename T> class aligned_stack_memory_handler
@@ -552,7 +550,7 @@ template<typename T> class aligned_stack_memory_handler
bool m_deallocate;
};
}
} // end namespace internal
/** \internal
* Declares, allocates and construct an aligned buffer named NAME of SIZE elements of type TYPE on the stack
@@ -955,4 +953,6 @@ inline int queryTopLevelCacheSize()
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_MEMORY_H