|
Bugzilla – Full Text Bug Listing |
| Summary: | C++11 compliance problem with std::pair | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Morten V. Pedersen <morten> |
| Component: | internet | Assignee: | George Riley <riley> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs, vedran |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
patch for the issue
Updated patch |
||
|
Description
Morten V. Pedersen
2013-05-09 04:55:54 UTC
Hi Morten, you can also use $ CXXFLAGS="--std=c++0x" ./waf configure $ ./waf build I will take a look at the patch. +0.5. There are some more occurrences where the make_pair isn't used correctly. Using grep I find: src/internet/model/ipv4-l3-protocol.cc: m_fragments.insert (it, std::make_pair<Ptr<Packet>, uint16_t> (fragment, fragmentOffset)); src/internet/model/ipv6-extension.cc: std::pair<Ipv6Address, uint32_t> fragmentsId = std::make_pair<Ipv6Address, uint32_t> (src, identification); src/internet/model/ipv6-extension.cc: unfragmentablePart.push_back (std::make_pair<Ipv6ExtensionHeader *, uint8_t> (hopbyhopHeader, Ipv6Header::IPV6_EXT_HOP_BY_HOP)); src/internet/model/ipv6-extension.cc: unfragmentablePart.push_back (std::make_pair<Ipv6ExtensionHeader *, uint8_t> (routingHeader, Ipv6Header::IPV6_EXT_ROUTING)); src/internet/model/ipv6-extension.cc: unfragmentablePart.push_back (std::make_pair<Ipv6ExtensionHeader *, uint8_t> (destinationHeader, Ipv6Header::IPV6_EXT_DESTINATION)); src/internet/model/ipv6-extension.cc: m_packetFragments.insert (it, std::make_pair<Ptr<Packet>, uint16_t> (fragment, fragmentOffset)); Update the patch to fix 'em all please, then feel free to push it. T. Created attachment 1602 [details]
Updated patch
Sorry for the delay, got busy with some other stuff. Anyway this patch should fix all uses of std::make_pair.
Pushed in changeset: 9813:16f65595bdf8 |