Fixes C++0x compatibility problems.
This commit is contained in:
parent
2ca4d21500
commit
1b2e509958
|
@ -95,7 +95,7 @@ class ValueArray2 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,8 @@ class ValueArray3 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -135,7 +136,8 @@ class ValueArray4 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -157,7 +159,8 @@ class ValueArray5 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -181,7 +184,9 @@ class ValueArray6 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -206,7 +211,9 @@ class ValueArray7 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -233,7 +240,9 @@ class ValueArray8 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -261,7 +270,10 @@ class ValueArray9 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -290,7 +302,10 @@ class ValueArray10 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -321,7 +336,10 @@ class ValueArray11 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -353,8 +371,11 @@ class ValueArray12 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -388,8 +409,11 @@ class ValueArray13 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -424,8 +448,11 @@ class ValueArray14 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -461,8 +488,12 @@ class ValueArray15 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -501,8 +532,12 @@ class ValueArray16 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -542,8 +577,12 @@ class ValueArray17 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -584,8 +623,13 @@ class ValueArray18 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -627,8 +671,13 @@ class ValueArray19 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -672,8 +721,13 @@ class ValueArray20 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -719,8 +773,14 @@ class ValueArray21 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -767,8 +827,14 @@ class ValueArray22 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -817,9 +883,14 @@ class ValueArray23 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_,
|
||||
v23_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -869,9 +940,15 @@ class ValueArray24 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -922,9 +999,15 @@ class ValueArray25 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -977,9 +1060,15 @@ class ValueArray26 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1034,9 +1123,16 @@ class ValueArray27 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1092,9 +1188,16 @@ class ValueArray28 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1151,9 +1254,16 @@ class ValueArray29 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1212,9 +1322,17 @@ class ValueArray30 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1275,9 +1393,17 @@ class ValueArray31 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1339,9 +1465,17 @@ class ValueArray32 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1405,9 +1539,18 @@ class ValueArray33 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1472,9 +1615,18 @@ class ValueArray34 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1540,10 +1692,18 @@ class ValueArray35 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_,
|
||||
v35_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1611,10 +1771,19 @@ class ValueArray36 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1684,10 +1853,19 @@ class ValueArray37 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1758,10 +1936,19 @@ class ValueArray38 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1833,10 +2020,20 @@ class ValueArray39 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1910,10 +2107,20 @@ class ValueArray40 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -1989,10 +2196,20 @@ class ValueArray41 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2069,10 +2286,21 @@ class ValueArray42 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2150,10 +2378,21 @@ class ValueArray43 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_), static_cast<T>(v43_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2233,10 +2472,21 @@ class ValueArray44 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_), static_cast<T>(v43_), static_cast<T>(v44_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2317,10 +2567,22 @@ class ValueArray45 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_), static_cast<T>(v43_), static_cast<T>(v44_),
|
||||
static_cast<T>(v45_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2403,10 +2665,22 @@ class ValueArray46 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_), static_cast<T>(v43_), static_cast<T>(v44_),
|
||||
static_cast<T>(v45_), static_cast<T>(v46_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2491,11 +2765,22 @@ class ValueArray47 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_,
|
||||
v47_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_), static_cast<T>(v43_), static_cast<T>(v44_),
|
||||
static_cast<T>(v45_), static_cast<T>(v46_), static_cast<T>(v47_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2581,11 +2866,23 @@ class ValueArray48 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_,
|
||||
v48_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_), static_cast<T>(v43_), static_cast<T>(v44_),
|
||||
static_cast<T>(v45_), static_cast<T>(v46_), static_cast<T>(v47_),
|
||||
static_cast<T>(v48_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2672,11 +2969,23 @@ class ValueArray49 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_,
|
||||
v48_, v49_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_), static_cast<T>(v43_), static_cast<T>(v44_),
|
||||
static_cast<T>(v45_), static_cast<T>(v46_), static_cast<T>(v47_),
|
||||
static_cast<T>(v48_), static_cast<T>(v49_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
@ -2764,11 +3073,23 @@ class ValueArray50 {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
|
||||
v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
|
||||
v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
|
||||
v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_,
|
||||
v48_, v49_, v50_};
|
||||
const T array[] = {static_cast<T>(v1_), static_cast<T>(v2_),
|
||||
static_cast<T>(v3_), static_cast<T>(v4_), static_cast<T>(v5_),
|
||||
static_cast<T>(v6_), static_cast<T>(v7_), static_cast<T>(v8_),
|
||||
static_cast<T>(v9_), static_cast<T>(v10_), static_cast<T>(v11_),
|
||||
static_cast<T>(v12_), static_cast<T>(v13_), static_cast<T>(v14_),
|
||||
static_cast<T>(v15_), static_cast<T>(v16_), static_cast<T>(v17_),
|
||||
static_cast<T>(v18_), static_cast<T>(v19_), static_cast<T>(v20_),
|
||||
static_cast<T>(v21_), static_cast<T>(v22_), static_cast<T>(v23_),
|
||||
static_cast<T>(v24_), static_cast<T>(v25_), static_cast<T>(v26_),
|
||||
static_cast<T>(v27_), static_cast<T>(v28_), static_cast<T>(v29_),
|
||||
static_cast<T>(v30_), static_cast<T>(v31_), static_cast<T>(v32_),
|
||||
static_cast<T>(v33_), static_cast<T>(v34_), static_cast<T>(v35_),
|
||||
static_cast<T>(v36_), static_cast<T>(v37_), static_cast<T>(v38_),
|
||||
static_cast<T>(v39_), static_cast<T>(v40_), static_cast<T>(v41_),
|
||||
static_cast<T>(v42_), static_cast<T>(v43_), static_cast<T>(v44_),
|
||||
static_cast<T>(v45_), static_cast<T>(v46_), static_cast<T>(v47_),
|
||||
static_cast<T>(v48_), static_cast<T>(v49_), static_cast<T>(v50_)};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ class ValueArray$i {
|
|||
|
||||
template <typename T>
|
||||
operator ParamGenerator<T>() const {
|
||||
const T array[] = {$for j, [[v$(j)_]]};
|
||||
const T array[] = {$for j, [[static_cast<T>(v$(j)_)]]};
|
||||
return ValuesIn(array);
|
||||
}
|
||||
|
||||
|
|
|
@ -968,23 +968,23 @@ TEST(ThreadLocalTest, ValueDefaultContructorIsNotRequiredForParamVersion) {
|
|||
}
|
||||
|
||||
TEST(ThreadLocalTest, GetAndPointerReturnSameValue) {
|
||||
ThreadLocal<String> thread_local;
|
||||
ThreadLocal<String> thread_local_string;
|
||||
|
||||
EXPECT_EQ(thread_local.pointer(), &(thread_local.get()));
|
||||
EXPECT_EQ(thread_local_string.pointer(), &(thread_local_string.get()));
|
||||
|
||||
// Verifies the condition still holds after calling set.
|
||||
thread_local.set("foo");
|
||||
EXPECT_EQ(thread_local.pointer(), &(thread_local.get()));
|
||||
thread_local_string.set("foo");
|
||||
EXPECT_EQ(thread_local_string.pointer(), &(thread_local_string.get()));
|
||||
}
|
||||
|
||||
TEST(ThreadLocalTest, PointerAndConstPointerReturnSameValue) {
|
||||
ThreadLocal<String> thread_local;
|
||||
const ThreadLocal<String>& const_thread_local = thread_local;
|
||||
ThreadLocal<String> thread_local_string;
|
||||
const ThreadLocal<String>& const_thread_local_string = thread_local_string;
|
||||
|
||||
EXPECT_EQ(thread_local.pointer(), const_thread_local.pointer());
|
||||
EXPECT_EQ(thread_local_string.pointer(), const_thread_local_string.pointer());
|
||||
|
||||
thread_local.set("foo");
|
||||
EXPECT_EQ(thread_local.pointer(), const_thread_local.pointer());
|
||||
thread_local_string.set("foo");
|
||||
EXPECT_EQ(thread_local_string.pointer(), const_thread_local_string.pointer());
|
||||
}
|
||||
|
||||
#if GTEST_IS_THREADSAFE
|
||||
|
@ -1094,14 +1094,15 @@ void RetrieveThreadLocalValue(pair<ThreadLocal<String>*, String*> param) {
|
|||
}
|
||||
|
||||
TEST(ThreadLocalTest, ParameterizedConstructorSetsDefault) {
|
||||
ThreadLocal<String> thread_local("foo");
|
||||
EXPECT_STREQ("foo", thread_local.get().c_str());
|
||||
ThreadLocal<String> thread_local_string("foo");
|
||||
EXPECT_STREQ("foo", thread_local_string.get().c_str());
|
||||
|
||||
thread_local.set("bar");
|
||||
EXPECT_STREQ("bar", thread_local.get().c_str());
|
||||
thread_local_string.set("bar");
|
||||
EXPECT_STREQ("bar", thread_local_string.get().c_str());
|
||||
|
||||
String result;
|
||||
RunFromThread(&RetrieveThreadLocalValue, make_pair(&thread_local, &result));
|
||||
RunFromThread(&RetrieveThreadLocalValue,
|
||||
make_pair(&thread_local_string, &result));
|
||||
EXPECT_STREQ("foo", result.c_str());
|
||||
}
|
||||
|
||||
|
@ -1130,8 +1131,8 @@ class DestructorTracker {
|
|||
|
||||
typedef ThreadLocal<DestructorTracker>* ThreadParam;
|
||||
|
||||
void CallThreadLocalGet(ThreadParam thread_local) {
|
||||
thread_local->get();
|
||||
void CallThreadLocalGet(ThreadParam thread_local_param) {
|
||||
thread_local_param->get();
|
||||
}
|
||||
|
||||
// Tests that when a ThreadLocal object dies in a thread, it destroys
|
||||
|
@ -1141,19 +1142,19 @@ TEST(ThreadLocalTest, DestroysManagedObjectForOwnThreadWhenDying) {
|
|||
|
||||
{
|
||||
// The next line default constructs a DestructorTracker object as
|
||||
// the default value of objects managed by thread_local.
|
||||
ThreadLocal<DestructorTracker> thread_local;
|
||||
// the default value of objects managed by thread_local_tracker.
|
||||
ThreadLocal<DestructorTracker> thread_local_tracker;
|
||||
ASSERT_EQ(1U, g_destroyed.size());
|
||||
ASSERT_FALSE(g_destroyed[0]);
|
||||
|
||||
// This creates another DestructorTracker object for the main thread.
|
||||
thread_local.get();
|
||||
thread_local_tracker.get();
|
||||
ASSERT_EQ(2U, g_destroyed.size());
|
||||
ASSERT_FALSE(g_destroyed[0]);
|
||||
ASSERT_FALSE(g_destroyed[1]);
|
||||
}
|
||||
|
||||
// Now thread_local has died. It should have destroyed both the
|
||||
// Now thread_local_tracker has died. It should have destroyed both the
|
||||
// default value shared by all threads and the value for the main
|
||||
// thread.
|
||||
ASSERT_EQ(2U, g_destroyed.size());
|
||||
|
@ -1170,14 +1171,14 @@ TEST(ThreadLocalTest, DestroysManagedObjectAtThreadExit) {
|
|||
|
||||
{
|
||||
// The next line default constructs a DestructorTracker object as
|
||||
// the default value of objects managed by thread_local.
|
||||
ThreadLocal<DestructorTracker> thread_local;
|
||||
// the default value of objects managed by thread_local_tracker.
|
||||
ThreadLocal<DestructorTracker> thread_local_tracker;
|
||||
ASSERT_EQ(1U, g_destroyed.size());
|
||||
ASSERT_FALSE(g_destroyed[0]);
|
||||
|
||||
// This creates another DestructorTracker object in the new thread.
|
||||
ThreadWithParam<ThreadParam> thread(
|
||||
&CallThreadLocalGet, &thread_local, NULL);
|
||||
&CallThreadLocalGet, &thread_local_tracker, NULL);
|
||||
thread.Join();
|
||||
|
||||
// Now the new thread has exited. The per-thread object for it
|
||||
|
@ -1187,7 +1188,7 @@ TEST(ThreadLocalTest, DestroysManagedObjectAtThreadExit) {
|
|||
ASSERT_TRUE(g_destroyed[1]);
|
||||
}
|
||||
|
||||
// Now thread_local has died. The default value should have been
|
||||
// Now thread_local_tracker has died. The default value should have been
|
||||
// destroyed too.
|
||||
ASSERT_EQ(2U, g_destroyed.size());
|
||||
EXPECT_TRUE(g_destroyed[0]);
|
||||
|
@ -1197,12 +1198,13 @@ TEST(ThreadLocalTest, DestroysManagedObjectAtThreadExit) {
|
|||
}
|
||||
|
||||
TEST(ThreadLocalTest, ThreadLocalMutationsAffectOnlyCurrentThread) {
|
||||
ThreadLocal<String> thread_local;
|
||||
thread_local.set("Foo");
|
||||
EXPECT_STREQ("Foo", thread_local.get().c_str());
|
||||
ThreadLocal<String> thread_local_string;
|
||||
thread_local_string.set("Foo");
|
||||
EXPECT_STREQ("Foo", thread_local_string.get().c_str());
|
||||
|
||||
String result;
|
||||
RunFromThread(&RetrieveThreadLocalValue, make_pair(&thread_local, &result));
|
||||
RunFromThread(&RetrieveThreadLocalValue,
|
||||
make_pair(&thread_local_string, &result));
|
||||
EXPECT_TRUE(result.c_str() == NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user