// Assignment operators.
cl_DF& operator= (const cl_DF&);
// Optimization of method pointer_p().
- cl_boolean pointer_p() const
- { return cl_true; }
+ bool pointer_p() const
+ { return true; }
// Faster pointer_p() gives a faster copy constructor (but not destructor!!!).
cl_DF (const cl_DF& x);
// Constructors and assignment operators from C numeric types.
operator struct cl_heap_dfloat * () const;
public: // Ability to place an object at a given address.
void* operator new (size_t size) { return malloc_hook(size); }
- void* operator new (size_t size, cl_DF* ptr) { (void)size; return ptr; }
+ void* operator new (size_t size, void* ptr) { (void)size; return ptr; }
void operator delete (void* ptr) { free_hook(ptr); }
private:
// Friend declarations. They are for the compiler. Just ignore them.