From a219f0c1e2a12c2e91237ed4797c54cc65ee1b9b Mon Sep 17 00:00:00 2001 From: Pedro Tamborindeguy Date: Sat, 30 Mar 2024 15:57:55 -0300 Subject: [PATCH] chore: add std namespace to pair for compiling in modern g++ --- src/cd++/cell/ltranadm.h | 2 +- src/cd++/msg/msgadm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cd++/cell/ltranadm.h b/src/cd++/cell/ltranadm.h index 4c19d5d..65d8763 100755 --- a/src/cd++/cell/ltranadm.h +++ b/src/cd++/cell/ltranadm.h @@ -34,7 +34,7 @@ class VTime ; class SpecNode ; /** declarations **/ -typedef pair PortValue; +typedef std::pair PortValue; class SingleLocalTransAdmin ; diff --git a/src/cd++/msg/msgadm.h b/src/cd++/msg/msgadm.h index 5119b77..ca3a79f 100755 --- a/src/cd++/msg/msgadm.h +++ b/src/cd++/msg/msgadm.h @@ -46,7 +46,7 @@ class MessageAdmin bool running ; MessageAdmin(); // Default constructor - typedef pair< Message*, ProcId > UnprocessedMsg ; + typedef std::pair< Message*, ProcId > UnprocessedMsg ; typedef std::list< UnprocessedMsg > UnprocessedMsgQueue ; UnprocessedMsgQueue unprocessedQueue;