Click here to Skip to main content
14,357,409 members

C / C++ / MFC

 
GeneralRe: identifier 'mode_t' Pin
Richard MacCutchan6-Oct-19 23:30
protectorRichard MacCutchan6-Oct-19 23:30 
SuggestionRe: identifier 'mode_t' Pin
David Crow6-Oct-19 12:48
memberDavid Crow6-Oct-19 12:48 
Questionerror C2678 Pin
_Flaviu4-Oct-19 5:54
member_Flaviu4-Oct-19 5:54 
QuestionRe: error C2678 Pin
Richard MacCutchan4-Oct-19 6:09
protectorRichard MacCutchan4-Oct-19 6:09 
AnswerRe: error C2678 Pin
_Flaviu5-Oct-19 23:53
member_Flaviu5-Oct-19 23:53 
GeneralRe: error C2678 Pin
Richard MacCutchan6-Oct-19 0:12
protectorRichard MacCutchan6-Oct-19 0:12 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 0:50
member_Flaviu6-Oct-19 0:50 
GeneralRe: error C2678 Pin
Richard MacCutchan6-Oct-19 1:04
protectorRichard MacCutchan6-Oct-19 1:04 
_Flaviu wrote:
why do you say that this solution is not really correct ?
Because, as I mentioned before, enums are used to indicate a set of possible values for an item. For example a class of type Car could contain an enum that indicates the manufacturer, such that the enum definition is:
enum manufacturer
{
    AUDI = 1,
    BMW,
    DAIMLER,
    MERCEDES,
// etc.
}

And you would never combine thos values in the car type variable.

So, in your case you should use #define statements, which the compiler will be happy with.
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 6:20
member_Flaviu6-Oct-19 6:20 
GeneralRe: error C2678 Pin
Richard MacCutchan6-Oct-19 6:34
protectorRichard MacCutchan6-Oct-19 6:34 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 7:35
member_Flaviu6-Oct-19 7:35 
GeneralRe: error C2678 Pin
Richard MacCutchan6-Oct-19 8:12
protectorRichard MacCutchan6-Oct-19 8:12 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 8:26
member_Flaviu6-Oct-19 8:26 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 11:04
member_Flaviu6-Oct-19 11:04 
GeneralRe: error C2678 Pin
Victor Nijegorodov6-Oct-19 21:34
memberVictor Nijegorodov6-Oct-19 21:34 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 22:30
member_Flaviu6-Oct-19 22:30 
GeneralRe: error C2678 Pin
Victor Nijegorodov6-Oct-19 22:43
memberVictor Nijegorodov6-Oct-19 22:43 
GeneralRe: error C2678 Pin
_Flaviu6-Oct-19 22:58
member_Flaviu6-Oct-19 22:58 
GeneralRe: error C2678 Pin
Richard MacCutchan6-Oct-19 23:22
protectorRichard MacCutchan6-Oct-19 23:22 
GeneralRe: error C2678 Pin
_Flaviu7-Oct-19 10:16
member_Flaviu7-Oct-19 10:16 
GeneralRe: error C2678 Pin
Victor Nijegorodov7-Oct-19 10:24
memberVictor Nijegorodov7-Oct-19 10:24 
GeneralRe: error C2678 Pin
_Flaviu7-Oct-19 21:21
member_Flaviu7-Oct-19 21:21 
GeneralRe: error C2678 Pin
Victor Nijegorodov7-Oct-19 21:39
memberVictor Nijegorodov7-Oct-19 21:39 
GeneralRe: error C2678 Pin
Richard MacCutchan7-Oct-19 22:55
protectorRichard MacCutchan7-Oct-19 22:55 
GeneralRe: error C2678 Pin
_Flaviu8-Oct-19 0:24
member_Flaviu8-Oct-19 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.