hash_set<string> declared deprecated

Z

zs

Hi!

I get warning message shown below in VS.NET 2k3. Is this deprecated by
microsoft or by standard?
I need hash_set to store and search small strings (<20 chars long).
I'll have less then 300 strings, should I use some other stl conteiner?

d:\VS_Project\thread_test\thread_test\MtHashSet.h(14) : warning C4996:
'std::hash_set<_Kty>::__ctor' was declared deprecated
with
[
_Kty=std::string
]
and
[
_Kty=std::string
]
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\hash_set(258) : see declaration of
'std::hash_set<_Kty>::__ctor'
with
[
_Kty=std::string
]
and
[
_Kty=std::string
]
d:\VS_Project\thread_test\thread_test\MtHashSet.h(14) : while
compiling class-template member function
'Utills::MtHashSet<HashT>::MtHashSet(void)'
with
[
HashT=std::string
]
d:\VS_Project\thread_test\thread_test\global.h(6) : see
reference to class template instantiation 'Utills::MtHashSet<HashT>'
being compiled
with
[
HashT=std::string
]

Thx!

Best regards,
Zoran Stipanicev.
 
R

Rolf Magnus

zs said:
Hi!

I get warning message shown below in VS.NET 2k3. Is this deprecated by
microsoft or by standard?

There is no std::hash_set in standard C++.
I need hash_set to store and search small strings (<20 chars long).
I'll have less then 300 strings, should I use some other stl conteiner?

d:\VS_Project\thread_test\thread_test\MtHashSet.h(14) : warning C4996:
'std::hash_set<_Kty>::__ctor' was declared deprecated
with
[
_Kty=std::string
]
and
[
_Kty=std::string
]
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\hash_set(258) : see declaration of
'std::hash_set<_Kty>::__ctor'
with
[
_Kty=std::string
]
and
[
_Kty=std::string
]
d:\VS_Project\thread_test\thread_test\MtHashSet.h(14) : while
compiling class-template member function
'Utills::MtHashSet<HashT>::MtHashSet(void)'
with
[
HashT=std::string
]
d:\VS_Project\thread_test\thread_test\global.h(6) : see
reference to class template instantiation 'Utills::MtHashSet<HashT>'
being compiled
with
[
HashT=std::string
]

Thx!

Best regards,
Zoran Stipanicev.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top