So I'm referencing standard_config_formatter from within standard_config_formatter. This seems to cause problems as VC++7 (6 would probably crash compiling this ) gives me an error whenever I try using this typedef:
Code:
int get_int_prop(const my_type::string_type &name) {
The error is:
d:\work\daten\c++\fwrite\config.h(299) : error C2027: use of undefined type 'config_files::basic_configfile<_C,_Formatter>'
with
[
_C=char,
_Formatter=config_files::standard_config_formatter<char>
]
which seems strange to be because standard_config_formatter is the undefined type, not basic_configfile.
Anyone has an idea as to why this error occurs? I've got an idea to solve it, but it would take away some of the elegance of the code.
edit: The idea worked.
Last edited by CornedBee; Jan 27th, 2003 at 02:04 PM.
All the buzzt CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.