clean up autoconf of unordered_xx, prepare change to shared_ptr

This commit is contained in:
Jean-Francois Dockes
2015-08-09 10:21:46 +02:00
parent c8d34dc8ba
commit abe9fb671f
11 changed files with 69 additions and 32 deletions
+1
View File
@@ -2,6 +2,7 @@
#define _REFCNTR_H_
// See Stroustrup C++ 3rd ed, p. 783
// This is only used if std::shared_ptr is not available
template <class X> class RefCntr {
X *rep;
int *pcount;
+5 -4
View File
@@ -16,9 +16,8 @@
*/
#ifndef TEST_SMALLUT
#ifdef HAVE_CONFIG_H
#include "autoconfig.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
@@ -34,14 +33,16 @@
#include <string>
#include <iostream>
#include <list>
#include "unordered_defs.h"
using namespace std;
#include UNORDERED_MAP_INCLUDE
#include UNORDERED_SET_INCLUDE
#include "smallut.h"
#include "utf8iter.h"
#include "hldata.h"
#include "cstr.h"
using namespace std;
void map_ss_cp_noshr(const map<string,string> s, map<string,string> *d)
{
for (map<string,string>::const_iterator it= s.begin();