C++11: Making sure VectorT construction from iterator is only instantiated for actual iterators.

This commit is contained in:
Hans-Christian Ebke
2015-11-19 17:59:37 +01:00
parent cdfd266cab
commit 61fe9dabef
2 changed files with 10 additions and 4 deletions

View File

@@ -214,6 +214,9 @@ TEST_F(OpenMeshVectorTest, array_init) {
float a[3]; a[0] = 1.0; a[1] = 2.0; a[2] = 3.0;
OpenMesh::Vec3f v(a);
EXPECT_EQ(OpenMesh::Vec3f(1.0, 2.0, 3.0), v);
// This should not invoke the array constructor.
OpenMesh::Vec3d v2(3.0f);
}
TEST_F(OpenMeshVectorTest, normalized_cond) {