- Fix exception specifier (Ged or Thomas, can you double-check those please? :) )
- ATL can be used in code not using the C++11 standard aka. fix build when double '>' characters are present, for example in template<foo bar<stuff>> .

svn path=/trunk/; revision=69702
This commit is contained in:
Hermès Bélusca-Maïto 2015-10-25 23:10:43 +00:00
parent 6f3e0b39ca
commit 4883da7f5c
2 changed files with 5 additions and 5 deletions

View file

@ -136,7 +136,7 @@ class CElementTraits :
{ {
}; };
template<typename E, class ETraits = CElementTraits<E>> template<typename E, class ETraits = CElementTraits<E> >
class CAtlList class CAtlList
{ {
private: private:
@ -178,7 +178,7 @@ public:
E& GetNext(_Inout_ POSITION& pos); E& GetNext(_Inout_ POSITION& pos);
const E& GetNext(_Inout_ POSITION& pos) const; const E& GetNext(_Inout_ POSITION& pos) const;
E& GetPrev(_Inout_ POSITION& pos); E& GetPrev(_Inout_ POSITION& pos);
const E& GetPrev(_Inout_ POSITION& pos) const throw(); const E& GetPrev(_Inout_ POSITION& pos) const;
E& GetAt(_In_ POSITION pos); E& GetAt(_In_ POSITION pos);
const E& GetAt(_In_ POSITION pos) const; const E& GetAt(_In_ POSITION pos) const;
@ -189,7 +189,7 @@ public:
E RemoveHead(); E RemoveHead();
E RemoveTail(); E RemoveTail();
void RemoveAll(); void RemoveAll();
void RemoveAt(_In_ POSITION pos) throw(); void RemoveAt(_In_ POSITION pos);
POSITION Find( POSITION Find(
INARGTYPE element, INARGTYPE element,

View file

@ -106,7 +106,7 @@ class ChTraitsOS :
}; };
template <typename _BaseType = wchar_t, class StringIterator = ChTraitsOS<_BaseType>> template<typename _BaseType = wchar_t, class StringIterator = ChTraitsOS<_BaseType> >
class StrTraitATL : class StrTraitATL :
public StringIterator public StringIterator
{ {
@ -123,7 +123,7 @@ public:
}; };
typedef CStringT<wchar_t, StrTraitATL<wchar_t, ChTraitsCRT<wchar_t>>> CAtlStringW; typedef CStringT< wchar_t, StrTraitATL< wchar_t, ChTraitsCRT<wchar_t> > > CAtlStringW;
} }