-
December 27th, 2010, 07:55 PM
#1
Could someone compile this for me?
I wrote some VC++ specific optimizations in a library I maintain and I just want to make sure that I have the syntax correct. I don't own a Windows machine, nor does the office, so I can't do it myself.
Code:
#ifndef _MSC_VER
#error, Not VC++
#endif
#pragma pack(push, foo_pack, 1)
class foo {
bool __declspec(nothrow) bar(void) const;
};
bool __declspec(nothrow) foo::bar(void) const {
return true;
}
#pragma pack(pop, foo_pack)
int main(void){
return 0;
}
-
December 27th, 2010, 07:58 PM
#2
Re: Could someone compile this for me?
Compiled successfully with VS 2008 Express.
Rate my post if i it was useful!
-
December 27th, 2010, 08:15 PM
#3
Re: Could someone compile this for me?
Thank you very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|