bool Compare(wstring& left, wstring& right)
{
    return left < right ? true : false; 
}


int _tmain(int argc, _TCHAR* argv[])
{
    std::vector<wstring> strList;
    strList.push_back("가나다");
    strList.push_back("아자차");
    strList.push_back("거지");
    strList.push_back("나라말이");

    std::sort(strList.begin(), strList.end(), Compare);


return 0;

}

안정적인 DNS서비스 DNSEver DNS server, DNS service
Posted by 키르히아이스
,

참고 : https://social.msdn.microsoft.com/Forums/vstudio/en-US/185c9147-4866-4831-a3b7-7370b6f9faec/inetaddr-use-inetpton-or-inetpton-instead-or-define-winsockdeprecatednowarnings-to?forum=vcgeneral


error C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings


빌드 시 에러 발생


#include 최 상단에 아래 내용 추가

#define _WINSOCK_DEPRECATED_NO_WARNINGS


또는


프로젝트 -> 속성 -> C/C++ -> 일반 -> SDL검사 -> 아니오

Project properties > Configuration Properties > C/C++ > General > SDL checks > No

안정적인 DNS서비스 DNSEver DNS server, DNS service
Posted by 키르히아이스
,

참고 : http://stackoverflow.com/questions/30760889/unknown-compiler-version-while-compiling-boost-with-msvc-14-0-vs-2015


아래 내용 참고하여 visualc.hpp 수정 후 컴파일

boost/config/compiler/visualc.hpp 맨 아래 last known and checked version 부분 수정 필요



Latest (at the time of posting this answer) Boost 1.58 does support MSVC 14.0 Preview which was the latest MS compiler at the time of Boost 1.58 release. Now, the latest version of Visual Studio is2015 RC which isn't covered in the boost 1.58 config file.

To stop Boost 1.58 complaining about unknown compiler version edit boost/config/compiler/visualc.hpp and replace:

// last known and checked version is 19.00.22129 (VC14 Preview):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022310)

with:

// last known and checked version is 19.00.22816 (VC++ 2015 RC):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022816)

which you can find is already done in boost repo here for upcoming Boost 1.59 release.

Update: For Visual Studio 2015 RTM set it to:

// last known and checked version is 19.00.23026 (VC++ 2015):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190023026)

Update2: For Visual Studio 2015 Update 1 set it to:

// last known and checked version is 19.00.23506 (VC++ 2015 Update 1):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190023506)

Also if you have previously been running Boost.Build on toolset=msvc-14.0 then delete from C:\Users\<name>\AppData\Local\Temp the following cached files:

b2_msvc_14.0_vcvarsall_x86.cmd 
b2_msvc_14.0_vcvarsall_x86_amd64.cmd 
b2_msvc_14.0_vcvarsall_x86_arm.cmd



컴파일하는데 기다리기 귀찮으면 아래 참고

>> Precompiled Boost

http://www.npcglib.org/~stathis/blog/precompiled-boost/

안정적인 DNS서비스 DNSEver DNS server, DNS service
Posted by 키르히아이스
,

참고 : 

https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-settings.html#tsvn-dug-settings-progs

https://sourcegear.com/diffmerge/webhelp/sec__tortoise__svn.html


TortoiseSVN 사용 시 Diff툴로 DiffMerge 사용할 때 옵션 설정 필요

옵션 설정 하지 않을 경우 아래와 같은 Unexpected parameter 에러 발생



>> 해결 방법

>> TortoiseSVN Settings -> Diff Viewer

C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe -nosplash -t1=%bname -t2=%yname %base %mine


>> TortoiseSVN Settings -> Diff Viewer -> Merge Tool

C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe -caption=%mname -result=%merged -merge -nosplash -t1=%yname -t2=%bname -t3=%tname %mine %base %theirs

안정적인 DNS서비스 DNSEver DNS server, DNS service
Posted by 키르히아이스
,