| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Voronkov Konstantin" |
| Date: |
09 Sep 2004 03:57:01 PM |
| Object: |
Is there possiblitity to portable way to serialize enum type? |
Hello, All!
I want to ask question whether there is portable way to serialize
enum type? Is it safe to threat enum as integer?
Best Regards,
Voronkov Konstantin
.
|
|
| User: "Victor Bazarov" |
|
| Title: Re: Is there possiblitity to portable way to serialize enum type? |
09 Sep 2004 04:27:48 PM |
|
|
Voronkov Konstantin wrote:
I want to ask question whether there is portable way to serialize
enum type? Is it safe to threat enum as integer?
It is advisable to write conversion functions instead of "treating
enums" as anything. That's basically what serialisation is about,
you define the external representation and write functions that
convert something to it and from it to something.
V
.
|
|
|
|

|
Related Articles |
|
|