minor changes - don't know wha it does not compile for precise, lucid, squeeze
This commit is contained in:
		@@ -82,7 +82,7 @@ namespace mrw {
 | 
			
		||||
      typedef mrw::AutoResource<bfd*, int(*)(bfd*), &bfd_close, int> AutoBfd;
 | 
			
		||||
      template<class T> class Auto {
 | 
			
		||||
        public:
 | 
			
		||||
          typedef mrw::AutoResource<T, void(*)(void*), &free, T, (T)0> Free;
 | 
			
		||||
          typedef mrw::AutoResource<T, void(*)(void*), &free, T, T(0)> Free;
 | 
			
		||||
      };
 | 
			
		||||
      @endcode
 | 
			
		||||
      @param RESOURCE_TYPE type of the resource to manage
 | 
			
		||||
@@ -97,7 +97,7 @@ namespace mrw {
 | 
			
		||||
           typename FUNCTION_PTR,
 | 
			
		||||
           FUNCTION_PTR FREE_FUNCTION,
 | 
			
		||||
           typename INITIAL_VALUE_TYPE = RESOURCE_TYPE,
 | 
			
		||||
           INITIAL_VALUE_TYPE INITIAL_VALUE = (INITIAL_VALUE_TYPE)0,
 | 
			
		||||
      INITIAL_VALUE_TYPE INITIAL_VALUE = INITIAL_VALUE_TYPE(0),
 | 
			
		||||
           typename FREE_TYPE = RESOURCE_TYPE>
 | 
			
		||||
  class AutoResource {
 | 
			
		||||
    public:
 | 
			
		||||
@@ -436,7 +436,7 @@ namespace mrw {
 | 
			
		||||
  */
 | 
			
		||||
  template<class T> class Auto {
 | 
			
		||||
  public:
 | 
			
		||||
    typedef mrw::AutoResource<T, void(*)(void*), &free, T, (T)0, void*> Free;
 | 
			
		||||
      typedef mrw::AutoResource<T, void(*)(void*), &free, T, T(0), void*> Free;
 | 
			
		||||
  private:
 | 
			
		||||
    /** @internal
 | 
			
		||||
        work around compiler warning:
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@
 | 
			
		||||
#        else
 | 
			
		||||
           // __cplusplus==1 is a known bug in gcc 4.6.3
 | 
			
		||||
#          warning your compiler has a know bug, please upgrade to gcc >= 4.7
 | 
			
		||||
#          warning see __cplusplus in http://gcc.gnu.org/gcc-4.7/changes.html
 | 
			
		||||
#          warning "see __cplusplus in http://gcc.gnu.org/gcc-4.7/changes.html"
 | 
			
		||||
#      endif
 | 
			
		||||
#    else
 | 
			
		||||
       /// Code is compiled with an old non C++11 standard compliant compiler
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user