Skip to content

Commit

Permalink
[9772] Make GCC happy and restore buuild at *unix now really.
Browse files Browse the repository at this point in the history
Just for note: this still look as not code problem but GCC bug in C++ std. library.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
blueboy authored and VladimirMangos committed Apr 21, 2010
1 parent 5efb5f0 commit 74cb0e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/mangosd/CliRunnable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ bool ChatHandler::HandleCharacterDeletedRestoreCommand(const char* args)
std::string newCharName;
uint32 newAccount = 0;

std::istringstream(args) >> searchString >> newCharName >> newAccount;
// GCC by some strange reason fail build code without temporary variable
std::istringstream params(args);
params >> searchString >> newCharName >> newAccount;

DeletedInfoList foundList;
if (!GetDeletedCharacterInfoList(foundList, searchString))
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9771"
#define REVISION_NR "9772"
#endif // __REVISION_NR_H__

0 comments on commit 74cb0e6

Please sign in to comment.