source: git/ntl/include/NTL/new.h @ 5b561b

spielwiese
Last change on this file since 5b561b was 5b561b, checked in by Michael Brickenstein <bricken@…>, 18 years ago
*bricken: works better with omalloc git-svn-id: file:///usr/local/Singular/svn/trunk@9267 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 390 bytes
Line 
1
2#ifndef NTL_new__H
3#define NTL_new__H
4
5#include <NTL/config.h>
6
7#if (defined(NTL_STD_CXX) || defined(NTL_PSTD_NTN))
8
9// We use <new> and std::nothrow, even if neither NTL_STD_CXX nor 
10// NTL_PSTD_NHF are set.  This appears to be somewhat more compatible
11// with current compilers.
12
13#include <new>
14
15#define NTL_NEW_OP ::new //(std::nothrow)
16
17
18#else
19
20#define NTL_NEW_OP new
21
22#endif
23
24#endif
Note: See TracBrowser for help on using the repository browser.