[Ace-users] ACE_Service_Repository::instance (size_t size = ACE_Service_Repository::DEFAULT_SIZE )

joe joelihn at hotmail.com
Wed Dec 12 20:02:54 CST 2007


ACE VERSION: 5.5.10
HOST MACHINE and OPERATING SYSTEM:    winxp
COMPILER NAME AND VERSION (AND PATCHLEVEL): g++
THE $ACE_ROOT/ace/config.h FILE : #include "ace/config-win32.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU
FILE :platform_macros.GNU
DESCRIPTION:
I know in $ACE_ROOT/ace.there is:
Default_Constants.h:
#define ACE_DEFAULT_SERVICE_REPOSITORY_SIZE 1024

I want to use
if (ACE_Service_Repository::instance((size_t)1024*1024)->find(service,
&svc_rec) == -1) {}
set the maximum size of the ACE_Service_Repository.

But it seems does not work?


More information about the Ace-users mailing list