Skip to main content

Featured

Build docker image from multiple build contexts

Build docker image from multiple build contexts Building a docker image requires specifying a source of truth to include in the image from a local directory or a remote git repository. In the previous version, the docker BuildKit allows users to specify the build context from a single source of truth only. However, the engineers may need to have the context from different locations based on the type of files. For instance, icons, images or other resources that are not included in the same package, including the resource from other docker images. Fortunately, the Docker Buildx toolkit supports multiple build context flag for Docker 1.4. Let's learn how to use this new feature. The following list is a shortcut for jumping into a specific topic handy. What version of Docker is this tutorial targeting? How to specify the version of Dockerfile frontend? Ho

FunctionPtr

在持有的class(即要給他人使用的class)的class內先宣告
class CClassName4PtrFunc
{
public:
typedef void (CClassName4PtrFunc::*PtrFuncName) (arg...);

public:
void FuncName(arg...);

};


之後有要用的人則先在自己的head file內加入
class CClassName4PtrFunc;



需要使用時則在cpp內做以下動作即可
#include "CClassName4PtrFunc.h"

void CIWantUsePtrFunc::UsePtrFunc(arg...)
{
CClassName4PtrFunc::PtrFuncName pPtrFunc;

(*pPtrFunc)(agr...);
}


上面內容目前還沒測過,僅用於memo用。
有誤還煩請指教。

Comments

Popular Posts