Bug 1374 - Path to solve variable length array of non-POD element
This commit is contained in:
@@ -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> ();
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user