This snippet defines a decorator to automate attributes setting in class instances at creation time. It can be seen as a gadget feature but it can also be handy especially for fast class prototyping.

Member Avatar
Member Avatar
+0 forum 1

[CODE] struct S{ int i; double d; S(const S & incoming_S):i(S.i),d(S.d){} }; void test(){ S myS=S( /*temporary variable*/ S(23,3.14) ); } [/CODE] Questions: 1) During initialisation, is the temporary variable S(23,3.14) actually created or can it (and is it actually for typical compilers such as VS2008) optimised away? 2) Same question for placement new situation such as: [CODE] void test{ char buffer[sizeof(S)]; new buffer(0) S( /*temporary variable */ S(23,3.14) ); } [/CODE]

Member Avatar
Member Avatar
+0 forum 4

trying to fix my dad's old powerPC G3 before he pops his clogs (soon,terminal C) came to me with dead power supply and dead hdd managed to fix the power by using parts from another machine used other machine's hdd too, to check repair worked put back original hdd - nothing - not even in disc utiliy have tried to get hdd recognised in many other machines with no luck both internally and externally via usb to ide finally found a tray loading dvd type powerPC (laptop style ram) this machine recognises hdd, but only in disc utility where it …

Member Avatar
+0 forum 0

I have some problem i am trying to create a pdf with itextsharp in an aspx page i published in web service and called it but for the first time when i called aspx page i am getting an error message. But for every subsequent call to the webpage with query string i get the pdf -----------------The error message is----------- The process cannot access the file 'D:\Production_LIVE\Virtual Directories\...\88' because it is being used by another process. -----------------The error message is----------- i am deleting the path at the end of the function i write to create the pdf. I am clueless …

Member Avatar
+0 forum 0

i recently tried Gnu/linux musix ,which boots into command line interface.when i issue the command starx it returns some errors... "I830 dma initialization failed" "xf86vidmem:could not map framebuffer(0x400000,0*10000)(invalid argument) " i also tried replacing xfree86 by xorg but it gives the same errors. thanks in advance.

Member Avatar
+0 forum 0

char* p=(char*)malloc(10); in the above state ment,has the memory been initialised??...what is the difference between allocatingg it and initialising it?? thanks in avdance...

Member Avatar
Member Avatar
+0 forum 3

The End.