[Solved] Extra qualifier for member


Dude. Perhaps you should consider making use of named parameters.

What is the “Named Parameter Idiom”
http://www.parashift.com/c++-faq/named-parameter-idiom.html

Or if you use Boost, consider using the following.

The Boost Parameter Library
http://www.boost.org/doc/libs/1_55_0/libs/parameter/doc/html/index.html

Or, if you do not like that, a single parameter that is a map of a string to a union (or any, also part of Boost).

All of these would be a better alternative to a constructor with 18 parameters.

Besides, your declared lfsr constructor with 18 parameters, does not match your defined lfsr constructor, with 0, parameters.

By declared, I mean the statement that a function exists, witout code.

lfsr(int, int, int, int, int, int, int,
int, int, int, int, int, int, int, int,
boost::dynamic_bitset<>, boost::dynamic_bitset<>, boost::dynamic_bitset<>);

Is your declared constructor.

By defined, I mean the code.

lfsr()

Is your defined constructor. Of course it should be lfsr::lfsr().

void rsa(int x, int y, int z, boost::dynamic_bitset<> initSeq)

Should be as follows.

void lfsr::rsa(int x, int y, int z, boost::dynamic_bitset<> initSeq)

These clues should be enough to get you started.

1

solved Extra qualifier for member