mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Issue an error in case of direct inclusion of internal headers.
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#ifndef EIGEN_SPARSEBLOCKMATRIX_H
|
||||
#define EIGEN_SPARSEBLOCKMATRIX_H
|
||||
|
||||
#include "./InternalHeaderCheck.h"
|
||||
|
||||
namespace Eigen {
|
||||
/** \ingroup SparseCore_Module
|
||||
*
|
||||
|
||||
3
unsupported/Eigen/src/SparseExtra/InternalHeaderCheck.h
Normal file
3
unsupported/Eigen/src/SparseExtra/InternalHeaderCheck.h
Normal file
@@ -0,0 +1,3 @@
|
||||
#ifndef EIGEN_SPARSE_EXTRA_MODULE_H
|
||||
#error "Please include unsupported/Eigen/SparseExtra instead of including headers inside the src directory directly."
|
||||
#endif
|
||||
@@ -14,6 +14,8 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#include "./InternalHeaderCheck.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
namespace internal
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#ifndef EIGEN_BROWSE_MATRICES_H
|
||||
#define EIGEN_BROWSE_MATRICES_H
|
||||
|
||||
#include "./InternalHeaderCheck.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
enum {
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
namespace google {}
|
||||
#endif
|
||||
|
||||
#include "./InternalHeaderCheck.h"
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
/** Represents a std::map
|
||||
|
||||
Reference in New Issue
Block a user