pair OK, struct of pair bad

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

pair OK, struct of pair bad

Patrick Welche
Trying to narrow down my last post, I'm just trying to recover a pair of
ints from int_ >> int_ and a space skipper.

A pair of ints is compatible and works.
A struct containing two ints works.
A struct with a pair of ints as its only member fails.

I assume this will be an issue if I want to parse +(int_ >> int_)
as that will require a vector of pairs of ints?

Experiments attached...



What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
Spirit-general mailing list
[hidden email]

struct.cpp (1K) Download Attachment
pair.cpp (1K) Download Attachment