Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DELETE (all caps) reserved in C/C++?

Tags:

c++

I have an enumerated data type in a socket library for PUT, POST, and GET. I added DELETE, but it came up with errors until I changed it DELETECMD. Is DELETE (in all caps) a reserved word in c++? If so, for what? (I'm already well aware of the normal "delete" function) It's not a problem, I'm just curious.

like image 582
Joe Lyga Avatar asked Dec 29 '25 15:12

Joe Lyga


1 Answers

It's not reserved by C or C++, but it is used in Windows. It's one of the standard access rights, along with READ_CONTROL, SYNCHRONIZE, WRITE_DAC, and WRITE_OWNER. They're defined in winnt.h, which you'll get implicitly whenever you include windows.h.

like image 88
Rob Kennedy Avatar answered Dec 31 '25 06:12

Rob Kennedy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!