Questions tagged [tr1]

TR1 - C++ Technical Report 1, proposed extensions to the C++ standard library

The Technical Report on C++ Library Extensions (a.k.a ISO/IEC TR 19768) defined a number of new library components for C++, many taken from the Boost project. Nearly all the components in TR1 were included in the C++ 2011 standard.

232 questions
0
votes
3 answers

C++, TR1, Regex and Boost

I'm interested in a basic Regex library. I believe I can use C++ TR1. During the research, similar answers claim C++ TR1 is provided by Boost (some hand waiving). Perhaps I am missing something, but I did not see an acknowledgement of Boost by the…
jww
  • 97,681
  • 90
  • 411
  • 885
0
votes
1 answer

tr1's bind on map container with a member function (yikes!)

I am having problems with the following functions: typedef std::tr1::shared_ptr Island_sp_t; typedef map::value_type island_map_pair; std::map Island_ptr_map; void Model::save_all(ostream&…
Layla
  • 347
  • 1
  • 6
  • 13
-1
votes
1 answer

How to compile special mathematical functions with clang?

One can call sph_legendre from tr1 and compile it with gcc-5 or gcc-6 #include int main() { std::tr1::sph_legendre(1,1,0); return 0; } Unfortunately, if I try to compile it with clang++ as: clang++ -stdlib=libstdc++…
ilciavo
  • 3,069
  • 7
  • 26
  • 40
-1
votes
1 answer

C++ regular expression from ReadProcessMemory output

I want to match some strings from notepad process memory, but i have no success. Here is the code: int bytes_to_read = (int)info.RegionSize; char *buffer; buffer = (char*)malloc(bytes_to_read+1); ReadProcessMemory(hProcess, info.BaseAddress, buffer,…
user3092064
  • 23
  • 1
  • 4
-1
votes
1 answer

How to bind 'this' to a class function in C++ TR1?

I wanted to create a function for a class method from a specific instance. As in the example, I'd like to create a function for this->x. class A { public: void x(int p) { } void y() { function f = std::tr1::bind( &A::x, …
woodings
  • 7,503
  • 5
  • 34
  • 52
-2
votes
1 answer

Does C++ STL or TR1(not boost::tr1) work only on Windows?

I was thinking STL was a standard implementation, though TR1 may not be. But does the platform matter? I was thinking it would work on Windows/Linux/Unix/Mac. I have people saying it wont work on anything other than Windows. Please let me know. -TIA
codeworks
  • 149
  • 1
  • 15
-2
votes
1 answer

tr1::functional error with g++ 4.8.1

Code: #include class Test { public: Test() { ; } virtual void foo() = 0; }; void someFunc(Test& j) { j.foo(); } void func(Test& j) { std::tr1::bind(someFunc,…
David Schwartz
  • 179,497
  • 17
  • 214
  • 278
1 2 3
15
16