473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

hash_set<string> declared deprecated

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
1 3652
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Terry Reedy | last post by:
Announcement/Warning In the current implementation of list comprehensions, for-part control variables leak to the surrounding context. Example: >>> ] >>> print i 2 The name i was bound...
45
by: Matt Parkins | last post by:
Hi, (I realise this probably isn't precisely the right group for this - could someone direct me to the appropriate group to post this question? - thanks !) I'm using Visual C++ 2005 Express...
7
by: Olaf Baeyens | last post by:
I am testing VC++ 2005 and I get this warning: "warning C4996: 'strncpy' was declared deprecated" Does that mean that they might be phased out in VC++ 2006 or higher? Or does an alternative...
2
by: Jonathan Mcdougall | last post by:
Visual studio 2005 reports main.cpp(8) : warning C4996: 'std::basic_string<_Elem,_Traits,_Ax>::copy' was declared deprecated with this program: # include <string> int main()
10
by: Brennan Young | last post by:
Hi there, First I'll apologise for my ignorance! I have been attempting to compile some code that I found on the net. AFAICT it's intended to be portable code (it was available as source and...
23
by: steve.j.donovan | last post by:
Hi guys, We have the following macro: #define NEXT(type,p) (*((type*)(p))++) It provides a way to poke variable sized data into an array of pcode for a simple VM. e.g,
2
by: curious2007 | last post by:
I do not know how to handle this message: c:\users\admin\documents\visual studio 2005\projects\vec\vec\fileclass.cpp(40) : warning C4996: 'fopen' was declared deprecated c:\program...
3
by: pochipp | last post by:
Hi.. All I got a problem in writing this program becoz I successfullly compiled the file but I cannot run the program since there will be an error when I run it. So I checked again... And there...
2
by: r_ahimsa_m | last post by:
Hello, I am learning PHP5. I need to parse XML file and I found a solution in some book on PHP5 ("PHP5 Programming" by Rasmus Lerdors and others). Unfortunately I have two problems that I don't...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.