diff options
author | Bernard Normier <bernard@zeroc.com> | 2003-04-09 15:03:35 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2003-04-09 15:03:35 +0000 |
commit | 3cbc97486f02fdd25a532af96146aa956e51e26d (patch) | |
tree | 49dadb69954c3c3ef6ce87a9320b8c5c7bb714b8 /cpp/demo/Freeze/library/LibraryI.cpp | |
parent | adding Strategy.ice (diff) | |
download | ice-3cbc97486f02fdd25a532af96146aa956e51e26d.tar.bz2 ice-3cbc97486f02fdd25a532af96146aa956e51e26d.tar.xz ice-3cbc97486f02fdd25a532af96146aa956e51e26d.zip |
Solaris/Sun C++ 5.4 port
Diffstat (limited to 'cpp/demo/Freeze/library/LibraryI.cpp')
-rw-r--r-- | cpp/demo/Freeze/library/LibraryI.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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)); } // |