From 433d5ec64fae3080dc3f4a35db32abc0cd5d1f53 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 19 Nov 2003 23:10:40 +0000 Subject: [PATCH] Se corrige un bug. --- Server/include/plaqui/server/command.h | 2 +- Server/src/command.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Server/include/plaqui/server/command.h b/Server/include/plaqui/server/command.h index d27fbe2..0074557 100644 --- a/Server/include/plaqui/server/command.h +++ b/Server/include/plaqui/server/command.h @@ -129,7 +129,7 @@ namespace Server { * Obtiene el comando desde un pedido HTTP completo. */ friend std::istream& operator>>(std::istream& is, - Command& command) throw(HTTPError, sockerr); + Command& command) throw(HTTPError, sockerr, ios::failure); /** * Convierte el comando a un pedido HTTP completo. diff --git a/Server/src/command.cpp b/Server/src/command.cpp index 517d352..5aa4700 100644 --- a/Server/src/command.cpp +++ b/Server/src/command.cpp @@ -112,7 +112,8 @@ void Command::add_arg(const unsigned& arg) { build(); } -istream& operator>>(istream& is, Command& command) throw(HTTPError, sockerr) { +istream& operator>>(istream& is, Command& command) + throw(HTTPError, sockerr, ios::failure) { #ifdef DEBUG cerr << __FILE__ << "(" << __LINE__ << ")" << ": operator>>()" << endl; -- 2.43.0