mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Conway <>
Subject Re: Review Request 44191: Avoided external linkage for master constants.
Date Tue, 01 Mar 2016 02:26:47 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated March 1, 2016, 2:26 a.m.)

Review request for mesos and Ben Mahler.

Bugs: MESOS-4790

Repository: mesos


We were only using external linkage to workaround bugs in ancient
(4.1.x) of GCC. We can also mark most of these constants `constexpr`,
which should be both slightly more efficient (in theory) and
safer (see MESOS-1023).


  src/CMakeLists.txt a62042fbd45b46217a88098875524f93d3079de3 
  src/ 5d8fe8bf33acb352589b2b3e0341987f9a41bc17 
  src/master/constants.hpp 2c3299bc1aaa0888f7e47a71965c56ada8ecc21f 
  src/master/constants.cpp e316f9772d880b694faeee6d001dc56bc088c118 


Testing (updated)

make check

Note that I left a few string constants as `const std::string`; you might arguably want them
to be `constexpr char[]` (per Google Style Guide).


Neil Conway

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message