Deprecate macros.h and fpclassify.h
1. Replace CERES_DISALLOW_* with explicitly deleted constructors.
2. Replace use of CERES_ARRAY_SIZE and stack allocated arrays
with std::vector.
3. Move CERES_ALIGN_* macros into manual_constructor.h, which is
the one place they are used and will be deprecated along with that
file.
4. Introduce isnan,isnormal,isinf and isfinite for Jets.
5. Replace IsNormal,IsFinite,IsNaN and IsInfinite with corresponding
c++11 function calls.
Change-Id: I04f33a221aae77d247602150988b6d4aa4efeeab
diff --git a/include/ceres/context.h b/include/ceres/context.h
index 63c0a16..cf7c436 100644
--- a/include/ceres/context.h
+++ b/include/ceres/context.h
@@ -31,8 +31,6 @@
#ifndef CERES_PUBLIC_CONTEXT_H_
#define CERES_PUBLIC_CONTEXT_H_
-#include "ceres/internal/macros.h"
-
namespace ceres {
// A global context for processing data in Ceres. This provides a mechanism to
@@ -44,13 +42,13 @@
class Context {
public:
Context() {}
+ Context(const Context&) = delete;
+ void operator=(const Context&) = delete;
+
virtual ~Context() {}
// Creates a context object and the caller takes ownership.
static Context* Create();
-
- private:
- CERES_DISALLOW_COPY_AND_ASSIGN(Context);
};
} // namespace ceres