From 3cbc97486f02fdd25a532af96146aa956e51e26d Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Wed, 9 Apr 2003 15:03:35 +0000 Subject: Solaris/Sun C++ 5.4 port --- cpp/demo/Freeze/library/LibraryI.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpp/demo/Freeze/library/LibraryI.cpp') diff --git a/cpp/demo/Freeze/library/LibraryI.cpp b/cpp/demo/Freeze/library/LibraryI.cpp index 4e8eacb9d6e..4e96479e7d7 100644 --- a/cpp/demo/Freeze/library/LibraryI.cpp +++ b/cpp/demo/Freeze/library/LibraryI.cpp @@ -121,7 +121,9 @@ BookI::returnBook(const Ice::Current&) rentalCustomerName.clear();; } -static Ice::Identity +// Needs to be extern for the Sun C++ 5.4 compiler +// +extern Ice::Identity createBookIdentity(const string& isbn) { // @@ -213,7 +215,7 @@ LibraryI::createBook(const ::BookDescription& description, const Ice::Current&) } isbnSeq.push_back(description.isbn); - _authors.insert(make_pair(description.authors, isbnSeq)); + _authors.insert(StringIsbnSeqDict::value_type(description.authors, isbnSeq)); return book; } @@ -320,7 +322,7 @@ LibraryI::remove(const BookDescription& description) // // Otherwise, write back the new record. // - _authors.insert(make_pair(description.authors, isbnSeq)); + _authors.insert(StringIsbnSeqDict::value_type(description.authors, isbnSeq)); } // -- cgit v1.2.3