diff -r 41a8eba36f74 -r 629e60dfa279 wlan_bearer/wlanldd/wlan_common/osa_common/inc/osalist.inl --- a/wlan_bearer/wlanldd/wlan_common/osa_common/inc/osalist.inl Mon May 03 14:14:02 2010 +0300 +++ b/wlan_bearer/wlanldd/wlan_common/osa_common/inc/osalist.inl Fri May 14 17:41:09 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of the License "Eclipse Public License v1.0" @@ -16,7 +16,7 @@ */ /* -* %version: 5 % +* %version: 6 % */ #include @@ -37,7 +37,7 @@ // ----------------------------------------------------------------------------- // template -inline list::iterator list::begin() +inline typename list::iterator list::begin() { // for empty ranges begin() == end() return ( !(empty()) ? list_iterator( iFirst ) : end() ); @@ -48,7 +48,7 @@ // ----------------------------------------------------------------------------- // template -inline list::const_iterator list::begin() const +inline typename list::const_iterator list::begin() const { // for empty ranges begin() == end() return ( !(empty()) ? list_iterator( iFirst ) : end() ); @@ -59,7 +59,7 @@ // ----------------------------------------------------------------------------- // template -inline list::iterator list::end() +inline typename list::iterator list::end() { return list_iterator(); } @@ -69,7 +69,7 @@ // ----------------------------------------------------------------------------- // template -inline list::const_iterator list::end() const +inline typename list::const_iterator list::end() const { return list_iterator(); } @@ -79,7 +79,7 @@ // ----------------------------------------------------------------------------- // template -inline list::size_type list::size() const +inline typename list::size_type list::size() const { return iNumOfElems; } @@ -99,7 +99,7 @@ // ----------------------------------------------------------------------------- // template -inline list::reference list::front() +inline typename list::reference list::front() { // front() for empty sequence is undefined so assert MWlanOsa::Assert( @@ -112,7 +112,7 @@ // ----------------------------------------------------------------------------- // template -inline list::const_reference list::front() const +inline typename list::const_reference list::front() const { // front() for empty sequence is undefined so assert MWlanOsa::Assert( @@ -125,7 +125,7 @@ // ----------------------------------------------------------------------------- // template -inline list::reference list::back() +inline typename list::reference list::back() { // back() for empty sequence is undefined so assert MWlanOsa::Assert( @@ -138,7 +138,7 @@ // ----------------------------------------------------------------------------- // template -inline list::const_reference list::back() const +inline typename list::const_reference list::back() const { // back() for empty sequence is undefined so assert MWlanOsa::Assert( @@ -304,7 +304,9 @@ // ----------------------------------------------------------------------------- // template -inline list::iterator list::insert( iterator aPos, const T& aElem ) +inline typename list::iterator list::insert( + iterator aPos, + const T& aElem ) { // allocate a new node for the element Node* node = new Node( aElem ); @@ -355,7 +357,7 @@ // ----------------------------------------------------------------------------- // template -inline list::iterator list::erase( iterator aPos ) +inline typename list::iterator list::erase( iterator aPos ) { // extract node to be erased Node* node = aPos();