~ubuntu-branches/debian/experimental/protobuf/experimental

« back to all changes in this revision

Viewing changes to gtest/include/gtest/internal/gtest-tuple.h.pump

  • Committer: Package Import Robot
  • Author(s): Robert S. Edmonds, Micah Anderson, Colin Watson, Steve Langasek, Robert S. Edmonds
  • Date: 2013-10-12 18:32:37 UTC
  • mfrom: (1.3.1) (10.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20131012183237-jz6tvmj9tn68atrf
Tags: 2.5.0-1
[ Micah Anderson ]
* New upstream version. (Closes: #704731.)
* Update debian/watch.
* Refresh patches.

[ Colin Watson ]
* Use the autotools-dev dh addon to update config.guess/config.sub for
  arm64. (Closes: #725976.)

[ Steve Langasek ]
* Don't recommend protobuf-compiler from the bindings, it's not used and
  this doesn't need to be pulled in at runtime. (Closes: #703628.)
* Mark protobuf-compiler Multi-Arch: foreign; the output of this command
  is architecture-independent source, we don't need the version of the
  compiler to match the target arch.
* Bump to debhelper compat 9, so that our libs get installed to the
  multiarch locations.
* Mark the library packages Multi-Arch: same.
* Fix debian/rules to support cross-building of the python bindings.
* Build-depend on libpython-dev, not python-dev, for cross-build
  compatibility.
* (Closes: #726083.)

[ Robert S. Edmonds ]
* Upload to experimental.
* Bump ABI version from 7 to 8.
* Bump Standards-Version to 3.9.4.
* Convert from python-support to dh-python.
* Drop support for python2.6.
* python-protobuf: switch back to the pure Python implementation, as
  upstream appears to no longer be maintaining the current C++ based Python
  binding. See the following upstream issues for details:
  - https://code.google.com/p/protobuf/issues/detail?id=434
  - https://code.google.com/p/protobuf/issues/detail?id=503

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include <utility>  // For ::std::pair.
41
41
 
42
 
// The compiler used in Symbian 5th Edition (__S60_50__) has a bug
43
 
// that prevents us from declaring the tuple template as a friend (it
44
 
// complains that tuple is redefined).  This hack bypasses the bug by
45
 
// declaring the members that should otherwise be private as public.
46
 
#if defined(__SYMBIAN32__) && __S60_50__
47
 
#define GTEST_DECLARE_TUPLE_AS_FRIEND_ public:
 
42
// The compiler used in Symbian has a bug that prevents us from declaring the
 
43
// tuple template as a friend (it complains that tuple is redefined).  This
 
44
// hack bypasses the bug by declaring the members that should otherwise be
 
45
// private as public.
 
46
// Sun Studio versions < 12 also have the above bug.
 
47
#if defined(__SYMBIAN32__) || (defined(__SUNPRO_CC) && __SUNPRO_CC < 0x590)
 
48
# define GTEST_DECLARE_TUPLE_AS_FRIEND_ public:
48
49
#else
49
 
#define GTEST_DECLARE_TUPLE_AS_FRIEND_ \
 
50
# define GTEST_DECLARE_TUPLE_AS_FRIEND_ \
50
51
    template <GTEST_$(n)_TYPENAMES_(U)> friend class tuple; \
51
52
   private:
52
53
#endif
117
118
 
118
119
$for i [[
119
120
template <GTEST_$(n)_TYPENAMES_(T)>
120
 
struct TupleElement<true, $i, GTEST_$(n)_TUPLE_(T)> [[]]
121
 
{ typedef T$i type; };
 
121
struct TupleElement<true, $i, GTEST_$(n)_TUPLE_(T) > {
 
122
  typedef T$i type;
 
123
};
122
124
 
123
125
 
124
126
]]
140
142
 public:
141
143
  template <int k> friend class gtest_internal::Get;
142
144
 
143
 
  tuple() {}
 
145
  tuple() : $for m, [[f$(m)_()]] {}
144
146
 
145
147
  explicit tuple($for m, [[GTEST_BY_REF_(T$m) f$m]]) : [[]]
146
148
$for m, [[f$(m)_(f$m)]] {}
219
221
 
220
222
$for j [[
221
223
template <GTEST_$(j)_TYPENAMES_(T)>
222
 
struct tuple_size<GTEST_$(j)_TUPLE_(T)> { static const int value = $j; };
 
224
struct tuple_size<GTEST_$(j)_TUPLE_(T) > {
 
225
  static const int value = $j;
 
226
};
223
227
 
224
228
 
225
229
]]
301
305
inline bool operator==(const GTEST_$(n)_TUPLE_(T)& t,
302
306
                       const GTEST_$(n)_TUPLE_(U)& u) {
303
307
  return gtest_internal::SameSizeTuplePrefixComparator<
304
 
      tuple_size<GTEST_$(n)_TUPLE_(T)>::value,
305
 
      tuple_size<GTEST_$(n)_TUPLE_(U)>::value>::Eq(t, u);
 
308
      tuple_size<GTEST_$(n)_TUPLE_(T) >::value,
 
309
      tuple_size<GTEST_$(n)_TUPLE_(U) >::value>::Eq(t, u);
306
310
}
307
311
 
308
312
template <GTEST_$(n)_TYPENAMES_(T), GTEST_$(n)_TYPENAMES_(U)>