[Bro-Dev] [JIRA] (BIT-1023) const vector can be modified

Jon Siwek (JIRA) jira at bro-tracker.atlassian.net
Mon Mar 16 12:17:00 PDT 2015


     [ https://bro-tracker.atlassian.net/browse/BIT-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Siwek updated BIT-1023:
---------------------------
    Fix Version/s:     (was: 2.4)
                   2.5

> const vector can be modified
> ----------------------------
>
>                 Key: BIT-1023
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1023
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: git/master
>            Reporter: dmandelb
>             Fix For: 2.5
>
>
> The following code should probably be an error:
> {noformat}
> const foo: vector of double = vector() &redef;
> foo[|foo|] = 42.0;
> print(foo);
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4-OD-15-055#64014)


More information about the bro-dev mailing list