1 #define ACE_BUILD_SVC_DLL
4 #include "ace/Log_Msg.h"
5 #include "ace/svc_export.h"
6 #include "ace/OS_Memory.h"
8 // Implementation of the abstract class method which describes
10 void Newsweek::title ()
13 "Newsweek: Vol. 44923 Stardate: 12.3054\n"));
17 Newsweek::operator new (size_t bytes
)
19 return ::new char[bytes
];
22 Newsweek::operator new (size_t bytes
, const std::nothrow_t
&)
24 return ::new (std::nothrow
) char[bytes
];
27 Newsweek::operator delete (void *p
, const std::nothrow_t
&) noexcept
29 delete [] static_cast <char *> (p
);
32 Newsweek::operator delete (void *ptr
)
34 delete [] static_cast <char *> (ptr
);
37 // Returns the Newsweek class pointer.
38 // The ACE_BUILD_SVC_DLL and ACE_Svc_Export directives are necessary to
39 // take care of exporting the function for Win32 platforms.
40 extern "C" ACE_Svc_Export Magazine
*create_magazine ();
46 ACE_NEW_RETURN (mag
, Newsweek
, 0);