RAD Studio |  |

E2468: Value of type void is not allowed (C++)

A value of type void is really not a value at all, so it can't appear in any context where an actual value is required.

Such contexts include the following:

- the right side of an assignment
- an argument of a function
- the controlling expression of an if, for, or while statement.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!