mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Toenshoff" <toensh...@me.com>
Subject Re: Review Request 35494: Added format for template declaration in the styleguide.
Date Tue, 16 Jun 2015 08:21:37 GMT


> On June 16, 2015, 8:13 a.m., Joerg Schad wrote:
> > Actually I would really like to understand why we do it this way. Most other code
I know omits the space. Still, as this seems to be common practice...

That question should get raised on the JIRA to make things transparent.


- Till


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35494/#review88039
-----------------------------------------------------------


On June 16, 2015, 8:17 a.m., Alexander Rojas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35494/
> -----------------------------------------------------------
> 
> (Updated June 16, 2015, 8:17 a.m.)
> 
> 
> Review request for mesos, Bernd Mathiske and Joerg Schad.
> 
> 
> Bugs: MESOS-2705
>     https://issues.apache.org/jira/browse/MESOS-2705
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> The general rule to format templates is to declare them as:
> 
> ```c++
> template <typename T> // notice the space between template and <
> class Foo {
>   …
> };
> ```
> 
> However, the style is not documented anywhere nor it is inherited from the Google style
guide.
> 
> 
> Diffs
> -----
> 
>   docs/mesos-c++-style-guide.md 94107ed21c6f09349ce691f9f4d36b43bbbe809e 
> 
> Diff: https://reviews.apache.org/r/35494/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Alexander Rojas
> 
>


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