added deprecation messages to gcc

This commit is contained in:
Arvid Norberg 2007-08-10 16:57:53 +00:00
parent fc74e5d147
commit a234de50e3
1 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <string>
#include <vector>
#include <iosfwd>
#ifdef _MSC_VER
#pragma warning(push, 1)
@ -146,7 +147,8 @@ namespace libtorrent
const std::string& name() const { assert(m_piece_length > 0); return m_name; }
// ------- start deprecation -------
void print(std::ostream& os) const;
// this functionaily will be removed in a future version
void print(std::ostream& os) const TORRENT_DEPRECATED;
// ------- end deprecation -------
bool is_valid() const { return m_piece_length > 0; }