ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-3581) CPP: Place different enums and constants in separate namespaces or structs.
Date Thu, 13 Apr 2017 11:18:41 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-3581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15967423#comment-15967423
] 

Pavel Tupitsyn commented on IGNITE-3581:
----------------------------------------

Thanks for the explanation, [~isapego]. Looks good to me.

> CPP: Place different enums and constants in separate namespaces or structs.
> ---------------------------------------------------------------------------
>
>                 Key: IGNITE-3581
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3581
>             Project: Ignite
>          Issue Type: Task
>          Components: platforms
>    Affects Versions: 1.6
>            Reporter: Igor Sapego
>            Assignee: Igor Sapego
>              Labels: cpp
>             Fix For: 2.0
>
>
> The common practice is to place enums and constants in separate namespaces or structs.
This way we can group them and avoid name clashes without the need to use long names.
> [Details|http://stackoverflow.com/questions/7090130/enum-in-a-namespace].



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message