summaryrefslogtreecommitdiff
path: root/tutorial/cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove execute bit from plain text files in git (#2611)Christopher Tubbs2022-05-241-0/+0
| | | | | | | Trivially change file mode from 755 to 644 for files in git that shouldn't be marked as executable. These were probably marked as executable due to some contributors developing on Windows using a filesystem that doesn't support POSIX file modes, or aggressively marks everything as executable.
* Use modern OpenSSL cmake syntax (if available), and larger cmake cleanupMario Emmenlauer2021-09-021-3/+3
|
* THRIFT-5168 Useless generated code when .thrift file only has service typezeshuai0072020-04-212-5/+2
| | | | | | | Client: cpp Patch: zeshuai007 <51382517@qq.com> This closes #2095
* THRIFT-4896 - prevent cpp and c_glib include directories from leaking into ↵Kevin Wojniak2019-07-011-1/+1
| | | | | | other targets (#1821) - enable the automake `nostdinc` option - fix up include paths
* THRIFT-4762: Applied some C++11 refactorings to the runtime library and ↵Sebastian Zenker2019-01-291-9/+9
| | | | | | | | | | | | compiler (#1719) * make use of C++11 override keyword * added const specifier to TTransport::getOrigin() * added more const correctness to the compiler * make use of auto keyword * replaced usage of NULL with nullptr * make use of explicitly-defaulted function definition * extended changelog
* THRIFT-4730: remove pthread code and refactor, ending up with just ThreadFactorycyy2019-01-111-2/+2
|
* THRIFT-4720: documenting breaking changes, minor cleanupJames E. King III2019-01-091-1/+2
|
* remove stdcxx namespace and use std directlycyy2019-01-072-24/+22
|
* configure.ac, Makefile.am: introduce THRIFT variable to support ↵Thomas Petazzoni2017-09-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | cross-compilation The thrift build system currently assumes that the thrift compiler is always available in $(top_builddir)/compiler/cpp/thrift. However, in a cross-compilation context, this location contains the thrift compiler built for the target... which obviously will not run on the build machine. In order to support such cross-compilation situation, we introduce the THRIFT variable as a an argument for the configure script (using AC_ARG_VAR). If not specified, it defaults to the existing value of using compiler/cpp/thrift from the build directory, but it can be overridden when calling ./configure. Note that $(top_builddir) cannot be used within the configure script, so we simply use `pwd`, which is the same as the top_builddir. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> This closes #1336 This closes #1350
* THRIFT-2221: detect C++11 and use std namespace for memory operations ↵James E. King, III2017-08-102-24/+24
| | | | | | | | (smart_ptr) Client: C++ This closes #1328
* THRIFT-3873: fix various compiler warnings and overflow errorsJames E. King, III2017-01-201-2/+6
| | | | | | THRIFT-3847: change VERSION to PACKAGE_VERSION to avoid conflicts with third party or OS headers This closes #1128
* THRIFT-2835 Add possibility to distribute generators separately from thrift ↵Nobuaki Sukegawa2016-09-261-2/+1
| | | | | | | | | | | | | | core, and load them dynamically Client: Compiler Patch: Nobuaki Sukegawa, rebased by dtmuller Also fixed by dtmuller: * Add plugin namespace for erlang language binding * Fix unit test test_const_value * Don't clear type cache with every t_program conversion * Type "wb" may not be supported by popen on non-Windows platforms * Fix constness of AST type signatures
* THRIFT-3424 Add CMake android build optionNobuaki Sukegawa2015-11-231-1/+1
| | | | | | | Client: Build Patch: Nobuaki Sukegawa This closes #696
* THRIFT-3274 calling "make clean" twice in a row yields make errorRoger Meier2015-11-031-1/+1
| | | | fix tutorial
* THRIFT-2423 Facebook's THeader protocol and transport for cppDave Watson2015-11-041-0/+2
| | | | | | | Client: C++ Library, Compiler Patch: Dave Watson rebased by Nobuaki Sukegawa This closes #357 and closes #677
* THRIFT-3305: Missing dist files for 0.9.3 release candidatejfarrell2015-08-251-0/+1
| | | | | | | Client: build Patch: jfarrell Adds missing files to dist
* THRIFT-3219 Provide a C++ tutorial on server-side IP logging andBen Craig2015-07-042-22/+110
| | | | | | | | per-connection state Client: C++ Patch: Ben Craig <bencraig@apache.org> This closes #538
* THRIFT-727 - C++: what() method of generated exceptions will provide more ↵Konrad Grochowski2015-05-182-2/+3
| | | | | | | | | information Patch: Anna Dymek <aadymek@gmail.com> Client: C++ This closes #469
* THRIFT-2971 - C++ test and tutorial parallel build is unstableNobuaki Sukegawa2015-02-021-0/+3
|
* THRIFT-2729: C++ - .clang-format created and appliedKonrad Grochowski2014-11-183-15/+8
| | | | | | | Client: C++ Patch: Konrad Grochowski make style command added
* Revert "THRIFT-2729: C++ - .clang-format created and applied"Konrad Grochowski2014-11-183-8/+15
| | | | This reverts commit 74260aa9099c3bb209bc8e524b0e8ba603f62c41.
* THRIFT-2729: C++ - .clang-format created and appliedKonrad Grochowski2014-11-183-15/+8
| | | | | | | Client: C++ Patch: Konrad Grochowski make style command added
* THRIFT-2802: cpp - tutorial warnings removedKonrad Grochowski2014-11-062-3/+2
| | | | | | | Client: C++ Patch: Konrad Grochowski "unused parameter" warnings removed
* cpp: fix automake dependencies and make ProcessorTest.cpp compilable againRoger Meier2014-10-221-1/+1
|
* THRIFT-2602 fix missing dist filesRoger Meier2014-10-221-1/+2
| | | | | | | - add automake 1.13 dependency to configure.ac and doc - use serial-tests instead of .NOTPARALLEL (introduced by THRIFT-1829) Patch: Roger Meier
* THRIFT-2786 Cpp Tutorial: Make TThreadPoolServer / TThreadedServer a bit ↵Jens Geyer2014-10-141-0/+3
| | | | | | | easier to use Client: C++ Patch: Brian Brooks
* THRIFT-1462 add more strict compiler flagsRoger Meier2014-10-131-1/+1
| | | | Patch: Roger Meier
* THRIFT-2768: Whitespace FixupJens Geyer2014-10-031-26/+26
| | | | | | | Client: General (Makefile.am) Patch: Jens Geyer Reverted makefile.am - tabs are not optional there
* THRIFT-2768: Whitespace FixupJens Geyer2014-10-031-26/+26
| | | | | | | Client: General (Makefile.am, *.thrift) Patch: Jens Geyer DocTest.thrift has NOT been changed, the trailing whitespaces are part of the test case.
* THRIFT-2716 - removed warnings from some Makefile.amsKonrad Grochowski2014-09-291-4/+1
|
* THRIFT-2691 - C++ tutorial: printfs removed, generated operator<< usedKonrad Grochowski2014-09-082-24/+21
|
* THRIFT-2367 Build failure: stdlib and boost both define uint64_tRoger Meier2014-02-192-4/+0
| | | | | Fix: remove "using namespace boost;" Patch: Roger Meier
* THRIFT-2229 thrift failed to build on OSX 10.9 GMRoger Meier2013-11-162-11/+11
|
* THRIFT-1829 cpp unit tests fail to build using multiple make jobsRoger Meier2013-01-151-0/+1
| | | | Patch: David Rennalls and Roger Meier
* remove unused variableRoger Meier2012-10-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401884 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-1735 integrate tutorial into regular buildRoger Meier2012-10-242-35/+82
| | | | | | | | - cpp support - cleanup stuff git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401818 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-1552 Include paths for c/c++ should be prefixed with 'thrift/'Roger Meier2012-04-132-11/+11
| | | | | | | | | | | | | | To ensure there are no include path collisions the C and C++ header include paths should include 'thrift' as the root leaf. This will prevent having to place /usr/include/thrift into the compilers include header search path, which might otherwise result in the compiler accidentally picking up headers that it shouldn't. e.g. #include <foo/bar.h> should be #include <thrift/foo/bar.h> Change-Id: I48f2b0f549bda0fc81e85506ac857adc800b98a1 git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325674 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-920. cpp: C++ Test and Tutorial does not compile anymore due to the ↵Bryan Duxbury2010-09-272-6/+6
| | | | | | | | change within Enum handling Patch: Roger Meier and Christian Lavoie git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001826 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-387. Add license headers to a bunch of filesDavid Reiss2009-03-303-0/+57
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760189 13f79535-47bb-0310-9956-ffa450edef68
* cpp: Eliminate a buffer overflow in the tutorial serverDavid Reiss2009-03-261-2/+2
| | | | | | | Negative numbers can have 11 characters :) git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@758529 13f79535-47bb-0310-9956-ffa450edef68
* THRIFT-270: change cpp namespaces from facebook::thrift to apache::thriftT Jake Luciani2009-01-312-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739644 13f79535-47bb-0310-9956-ffa450edef68
* Make "make clean" rules a bit more standard.David Reiss2008-02-241-1/+1
| | | | | | | | | | | | | | Summary: make-generic is some sort of internal undocumented thing. make-local is what is supposed to be used for this stuff. Also use $(RM) instead of "rm -f". Reviewed By: marc Test Plan: make clean git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665498 13f79535-47bb-0310-9956-ffa450edef68
* Thrift: Whitespace cleanup.David Reiss2008-02-061-3/+3
| | | | | | | | | | | | | | | | | Summary: - Expanded tabs to spaces where spaces were the norm. - Deleted almost all trailing whitespace. - Added newlines to the ends of a few files. - Ran dos2unix on one file or two. Reviewed By: mcslee Test Plan: git diff -b Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665467 13f79535-47bb-0310-9956-ffa450edef68
* sprintf fix on C++ tutorial serverMark Slee2007-04-111-1/+3
| | | | | | | | | Reviewed By: danli Test Plan: hello git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665097 13f79535-47bb-0310-9956-ffa450edef68
* Thrift TutorialMark Slee2007-03-073-0/+214
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665051 13f79535-47bb-0310-9956-ffa450edef68