-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 12/11/2013 01:27 PM, Matt D wrote:
If this is the case what can be done?
On 12/09/2013 06:19 PM, Steve Glass wrote:
Sorry for the late reply on this but I fear you are returning a reference to a variable that's on the stack (and hence out-of-scope by the time control returns from the call). The bit pattern maybe there in memory but you are making an illegal access.
Lets see the code snippet for the function and we can help.
OK, so the problem has got to be that I put the type 'bit_vector' in front of the 'decoded_lcw_vec' in the .cc file. But if I don't put the type there I get a compile error, which is the reason I put the type there in the first place. If I use an array and declare it private in the .h then the program works and i get error corrected values in the UI. should i just stick with this or is there some reason I should be using the bit_vector type?