History log of /5.5.2/platform/tests/make_array/ (Results 1 - 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: v6.0.3, v5.5.4, v5.5.0
1ebd782809-Apr-2018 Dave Rigby <daver@couchbase.com>

GTest: Fix signed/unsigned comparision warnings

Change-Id: Ie1387f474088f4de329f0530e968e891a5dc311b
Reviewed-on: http://review.couchbase.org/92415
Tested-by: Build Bot <build@couchb

GTest: Fix signed/unsigned comparision warnings

Change-Id: Ie1387f474088f4de329f0530e968e891a5dc311b
Reviewed-on: http://review.couchbase.org/92415
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Tim Bradgate <tim.bradgate@couchbase.com>

show more ...

Revision tags: v4.6.5, v5.0.0
eaa49a0b20-Jun-2017 Will Gardner <willg@rdner.io>

Add cb::make_array

This introduces cb::make_array, included from the boost::make_array
(which is very similar to the std::make_array in the C++ Library
Fundamentals TS V2).

Add cb::make_array

This introduces cb::make_array, included from the boost::make_array
(which is very similar to the std::make_array in the C++ Library
Fundamentals TS V2).

The purpose of cb::make_array is to make declaration of compile time
arrays easier by allowing inference of both the common type of its
members and the size of the array.

Example usage:

constexpr auto datatypes = cb::make_array(Datatype::Raw, Datatype::Xattr);

Is equivalent to:

constexpr std::array<Datatype, 2> datatypes =
{Datatype::Raw, Datatype::Xattr)};

Change-Id: Iff24b1037c611a0ca7573c11c98b38b72ab84a6a
Reviewed-on: http://review.couchbase.org/79838
Tested-by: Build Bot <build@couchbase.com>
Tested-by: Will Gardner <willg@rdner.io>
Reviewed-by: Oliver Downard <oliver.downard@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

636c898221-Jun-2017 Dave Rigby <daver@couchbase.com>

Revert "Add cb::make_array"

Breaks under Centos6 / Centos7 (GCC 4.?): http://server.jenkins.couchbase.com/job/couchbase-server-unix/39032/

platform/tests/make_array/make_array_test.

Revert "Add cb::make_array"

Breaks under Centos6 / Centos7 (GCC 4.?): http://server.jenkins.couchbase.com/job/couchbase-server-unix/39032/

platform/tests/make_array/make_array_test.cc>:31:196: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
EXPECT_EQ("Couchbase"_ccb, string_array.at(2));
^
platform/tests/make_array/make_array_test.cc: In member function 'virtual void MakeArrayTest_Basic_Test::TestBody()':
platform/tests/make_array/make_array_test.cc:31:198: error: expected ')' before 'Couchbase'
EXPECT_EQ("Couchbase"_ccb, string_array.at(2));

This reverts commit 678b006eb33128ff8cca92adb173d7f9e5d8b3c7.

Change-Id: I448a4cb178c1da27ce32bc3e48f33074eac3dd90
Reviewed-on: http://review.couchbase.org/79815
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

678b006e20-Jun-2017 Will Gardner <willg@rdner.io>

Add cb::make_array

This introduces cb::make_array, included from the boost::make_array
(which is very similar to the std::make_array in the C++ Library
Fundamentals TS V2).

Add cb::make_array

This introduces cb::make_array, included from the boost::make_array
(which is very similar to the std::make_array in the C++ Library
Fundamentals TS V2).

The purpose of cb::make_array is to make declaration of compile time
arrays easier by allowing inference of both the common type of its
members and the size of the array.

Example usage:

constexpr auto datatypes = cb::make_array(Datatype::Raw, Datatype::Xattr);

Is equivalent to:

constexpr std::array<Datatype, 2> datatypes =
{Datatype::Raw, Datatype::Xattr)};

Change-Id: I84e8052d08d59b8c0d6539ac4b760cbba3db8630
Reviewed-on: http://review.couchbase.org/79725
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...