You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Paul Brett (JIRA)" <ji...@apache.org> on 2015/06/04 20:29:39 UTC

[jira] [Commented] (MESOS-2816) Use const char[] consistently for const strings.

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

Paul Brett commented on MESOS-2816:
-----------------------------------

How about constexpr char[] - safe and it can be used in constexpr functions.

> Use const char[] consistently for const strings.
> ------------------------------------------------
>
>                 Key: MESOS-2816
>                 URL: https://issues.apache.org/jira/browse/MESOS-2816
>             Project: Mesos
>          Issue Type: Task
>          Components: technical debt
>            Reporter: Jie Yu
>
> Currently, for const strings, some code uses char char[] and some code uses const char*. We should make those consistent.
> I propose to use const char[] consistently because it's slightly safer than a const char pointer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)