Different C-preprocessors have diffrerent behavior135 (7/15/2012 8:41:26 AM) comp.lang.c Hi,
Different C-preprocessors have diffrerent behavior on this program.
Is there any preprocessor standard for this case?
// ========================
// File foo.c
#define MACRO1(x) x
#define... Alex
Different behavior of C/C++-preprocessor756 (7/15/2012 4:43:07 AM) comp.lang.c++ Hi,
Hi,
Different C/C++-preprocessors have diffrerent behavior on this program.
Is there any preprocessor standard for this case?
// ========================
// File foo.cpp
#define MACRO1(x) x
... Alex
define for overloaded new240 (6/23/2012 5:33:12 AM) comp.lang.c++
Hi,
I need to overload new operator.
Hoever, there is some problem with new (std::nothrow).
Is there any way to resolve the problem without '#undef new' below?
--------------------------------... Alex
Different behavior overloaded global and local operator delete043 (6/14/2012 5:28:59 AM) comp.lang.c++ Hi,
Different behavior overloaded global and local operator delete.
We can see see that overloaded global operator delete(void *i_p,
std::size_t i_size) is not recognized.
Any suggestions.
Thanks
... Alex
C/C++ pitfalls related to 64-bits (unsigned long & double)6834 (2/13/2012 12:41:44 PM) comp.lang.c++ Hi, unsigned long a = -1; double b = a; unsigned long c = b; Model 32-bits: a == c Model 64-bits: a != c It is not a compiler bug for 64-bits. Is it a design bug of C/C++ languge for 64-bits? Alex ... Alex
Getting time of last reboot on Linux23127 (12/18/2011 5:35:03 PM) comp.unix.programmer Hi, Is there any sytem call (preferable) or shell-utility to get time of last reboot on Linux? uptime(1) is not what I need in my program. Alex ... Alex
[Linux] malloc: small size - small pointer?6103 (9/13/2011 8:17:47 AM) comp.unix.programmer Hi, Linux 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64 x86_64 x86_64 GNU/Linux Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 12.0.4.191 Build 201104... alex.vinokur(56)
define for overloaded new240 (6/23/2012 5:33:12 AM) comp.lang.c++
Hi,
I need to overload new operator.
Hoever, there is some problem with new (std::nothrow).
Is there any way to resolve the problem without '#undef new' below?
--------------------------------... alex.vinokur(56)
ios_base::ate and tellp()512 (1/23/2013 7:26:11 AM) comp.lang.c++ #include
#include
int main()
{
const char* fileName = "out1";
std::ofstream fs1(fileName);
fs1 g++ file02.cpp
> ./a.out
12
0
Why does fs2.tellp() print 0, but not 12?
Alex
... alex.vinokur(56)