[op25-dev] need help using extract()
md123 at nycap.rr.com
Wed Dec 11 20:45:27 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
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
>> 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?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (GNU/Linux)
Comment: MacGPG2 - http://www.gpgtools.org/macgpg2.html
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the op25-dev