add EIGEN_CWISE_PLUGIN support for extending class Cwise
diff --git a/Eigen/src/Core/Cwise.h b/Eigen/src/Core/Cwise.h
index eef7ef0..0e92dce 100644
--- a/Eigen/src/Core/Cwise.h
+++ b/Eigen/src/Core/Cwise.h
@@ -171,6 +171,11 @@
     const EIGEN_CWISE_COMP_TO_SCALAR_RETURN_TYPE(std::not_equal_to)
     operator!=(Scalar s) const;
 
+    // allow to extend Cwise outside Eigen
+    #ifdef EIGEN_CWISE_PLUGIN
+    #include EIGEN_CWISE_PLUGIN
+    #endif
+
   protected:
     ExpressionTypeNested m_matrix;
 };