U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » How to mark a class of function is deprecated
Re: How to mark a class of function is deprecated [message #36587 is a reply to message #36583] Tue, 12 June 2012 09:08 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
tojocky wrote on Mon, 11 June 2012 09:06

koldo wrote on Mon, 11 June 2012 09:46

Hello Ion

It works for MinGW but not for MSC.

The reason is that for MSC in Defs.h we have a:
#pragma warning(disable : 4996)



Thank you very much Koldo for testing this one.

Mirek, Could you help me in this:
-
#pragma warning(disable : 4996)
was introduced intentionally?



Yes. Microsoft has deprecated half of ANSI C library. The result is that with this warning on, all other more important warnings are lost in thousands of 'deprecated' warnings.

Which I believe might be sort of problem with your proposal too... If we want to introduce something like this, perhaps we should rather introduce "on demand" method, like adding flag "NODEPRECATED" to main package config would expose use of all deprecated features.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: String isn't pickable?
Next Topic: What`s the corect way to use TimingInspector?
Goto Forum:
  


Current Time: Tue Sep 08 18:30:16 GMT+2 2026

Total time taken to generate the page: 0.00955 seconds