By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,745 Members | 1,957 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,745 IT Pros & Developers. It's quick & easy.

hash_set<string> declared deprecated

P: n/a
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.

Apr 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
zs wrote:
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.


Apr 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.