Menu

Non-type template parameters

2003-06-09
2003-06-09
  • Michael Jarvis

    Michael Jarvis - 2003-06-09

    Just an FYI, we're having quite a bit of trouble getting the code to work with AIX, mostly due to the non-type template parameters.

    The Pool_alloc class is requiring a specialization for void, since void& is not valid.  However it's not as simple as just creating a specialization, since that seems to trigger other errors.

     
    • Marc Bumble

      Marc Bumble - 2003-06-09

      Michael,

      I think what you are describing is the constant template parameters which have also just recently been added to the GNU compiler?  They are mentioned in Bjarne Stroustrup's text (sec 13.2.3), so imagine that they will eventually be supported by the AIX compiler.  Perhaps there is an update?

      In this new allocator version, the constant parameters serve as the keys to indicate the appropriate shared memory attach.

      It is actually my goal to switch the SYS V semaphore calls to POSIX sem_init() etc calls.  But these new POSIX semaphore calls will not be properly supported for shared processes by Linux, (pshared=1) until probably kernel 2.6.x if I understand Ullas Drepper's notes properly.  

      I am not sure I understand what you are describing concernign the Pool_alloc class specialization?

      Marc

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.