Bug 1374 - Path to solve variable length array of non-POD element

This commit is contained in:
Gustavo J. A. M. Carneiro
2012-03-12 15:48:32 +01:00
parent ccee54a33a
commit 345b62dd38
2 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ int main (int argc, char *argv[])
Ptr<EnbNetDevice> enb;
enb = enbDevs.Get (0)->GetObject<EnbNetDevice> ();
Ptr<UeNetDevice> ue[nbUE];
std::vector< Ptr<UeNetDevice> >ue (nbUE);
for (int i = 0; i < nbUE; i++)
{
ue[i] = ueDevs.Get (i)->GetObject<UeNetDevice> ();

View File

@@ -170,8 +170,8 @@ Ns3LtePropagationLossModelTestCase::DoRun (void)
int nbOfValues = tx.size ();
for (int i = 0; i < nbOfValues; i++)
{
NS_TEST_ASSERT_MSG_EQ (tx.at (i) == 0 && rx.at (i) != 0, false, "Problem with elements of tx and rx.");
NS_TEST_ASSERT_MSG_EQ (tx.at (i) != 0 && (tx.at (i) <= rx.at (i)), false, "Problem with elements of tx and rx.");
NS_TEST_ASSERT_MSG_EQ ((tx.at (i) == 0 && rx.at (i) != 0), false, "Problem with elements of tx and rx.");
NS_TEST_ASSERT_MSG_EQ ((tx.at (i) != 0 && (tx.at (i) <= rx.at (i))), false, "Problem with elements of tx and rx.");
}