[Asterisk-code-review] vector: multiple evaluation of elem in AST VECTOR ADD SORTED. (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Fri Oct 6 12:03:37 CDT 2017


Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/6664 )

Change subject: vector: multiple evaluation of elem in AST_VECTOR_ADD_SORTED.
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.asterisk.org/#/c/6664/2/include/asterisk/vector.h
File include/asterisk/vector.h:

https://gerrit.asterisk.org/#/c/6664/2/include/asterisk/vector.h@307
PS2, Line 307:  * \param elem Element to insert. MUST BE SCALAR or cast to a scalar.
> so "Must be an assignable type."?
That's better though const types don't fit that description but will mostly work.  The only thing that doesn't work are arrays.

I was initially thinking of lvalues but that doesn't quite work either.

For simplicity, how about:
Must not be an array type.



-- 
To view, visit https://gerrit.asterisk.org/6664
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib960d7f5576f9e1a3c478ecb48995582a574e06d
Gerrit-Change-Number: 6664
Gerrit-PatchSet: 2
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Fri, 06 Oct 2017 17:03:37 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171006/217c084e/attachment.html>


More information about the asterisk-code-review mailing list