On Thu, Jan 16, 2014 at 10:13 AM, Activecat wrote:
> Dear Sir,
>
> Is this a good alternative?
>gr_make_io_signature2 (2, 2, sizeof(float), sizeof(double))
>
> http://stackoverflow.com/questions/14347626/how-to-define-a-block-with-2-inputs
>
>
Dear Activecat,
yes, you must specify the input
Dear Sir,
Is this a good alternative?
gr_make_io_signature2 (2, 2, sizeof(float), sizeof(double))
http://stackoverflow.com/questions/14347626/how-to-define-a-block-with-2-inputs
Is this considered a correct answer?
http://lists.gnu.org/archive/html/discuss-gnuradio/2013-01/msg00193.html
Re
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Activecat,
you're right. Method calls (or function calls in general) such us
push_back can only take place in functions. That's why constructors
exist! Please refer to your favourite C++ literature for more
information. As you understood correctly,
Dear Sir,
Below code will produce compilation error: 'input_sizes' does not name a
type.
This is because input_sizes must be assigned inside a context of a function
in c++, right ?
std::vector input_sizes;
input_sizes.push_back(sizeof(float));
input_sizes.push_back(sizeof(double));
gr_sync_block