what? --> note: synthesized method 'options::options()' first required here
In C++11, I have a struct here:
header: Code:
typedef struct { Quote:
in the options.cpp it references this-> note: synthesized method 'options:: options()' first required here. (no space between the colons, I get a 'O' face if I keep it like that. ) Code:
options opts; |
use: [noparse]options::options()[/noparse] to avoid :o faces
post at least something usable, to be able to reproduce what you are talking about. What I can see is syntactically incorrect and therefore useless. How do you think anyone will be able to tell you what's wrong with your real code? |
Quote:
oh for you: main Code:
#include <iostream> Code:
#ifndef STRT_H Code:
g++ -Weffc++ *.cpp Code:
[userx@void gurp]$ g++ -Weffc++ *.cpp |
|
Quote:
I was actually thinking of just removing that or downgrading the standardization. thanks for that last link. makes me wonder what -W checks are really be trusted. |
All times are GMT -5. The time now is 03:11 AM. |