---
name: "ACE_Module_Base"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Module_Base"
---

# ACE\_Module\_Base(3)

Workaround HP/C++ compiler bug with enums in templates.

## NAME

ACE\_Module\_Base -  Workaround HP/C++ compiler bug with enums in templates.

## SYNOPSIS

```
#include <ace/Module.h>
class ACE_Module_Base
{
  public:
        enum{ M_DELETE_NONE = 0,
        M_DELETE_READER = 1,
        M_DELETE_WRITER = 2,
        M_DELETE = 3 };

};
```

## DESCRIPTION

Certain C++ compilers, e.g., the HP/UX 10.x and 9.x compilers, seem to fail if enums are defined inside a template, hence we have to move them into a base class.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
