Update of /cvsroot/pygccxml/source/pyplusplus/unittests/data
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32499/pyplusplus/unittests/data
Added Files:
pointer_as_arg_to_be_exported.hpp
Log Message:
Adding unit test to next use case void f( data* x=0 )
Pinter that has null as default value
--- NEW FILE: pointer_as_arg_to_be_exported.hpp ---
// Copyright 2004 Roman Yakovenko.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef __pointer_as_arg_to_be_exported_hpp__
#define __pointer_as_arg_to_be_exported_hpp__
#include <string>
namespace pointer_as_arg{
struct data{};
inline int
test_for_null( data* d=0 ){
return d ? 1 : 0;
}
}
#endif//__pointer_as_arg_to_be_exported_hpp__
|