Re: Question about args parsing .consume()

Markku Savela <[email protected]>
Newsgroups gmane.network.routing.click
Message-ID <[email protected]>
Ok, my goof...

On 04/18/2012 12:51 PM, Markku Savela wrote:
>       if (Args(conf, this, errh)
> 	.read_mp("IPSEC", ElementCastArg("IPsec"), _ipsec)
> 	.consume()<  0)
> 	return -1;

If written as

     if (Args(this, errh).bind(conf)
	.read_mp("IPSEC", ElementCastArg("IPsec"), _ipsec)
         .consume() < 0)

it works as expected.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.